Mercurial > thymian
comparison server/root.ecpp @ 0:a4671277546c tip
created the repository for the thymian project
| author | ferencd |
|---|---|
| date | Tue, 17 Aug 2021 11:19:54 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:a4671277546c |
|---|---|
| 1 <%pre> | |
| 2 #include "file_sender.h" | |
| 3 </%pre> | |
| 4 <%cpp> | |
| 5 try | |
| 6 { | |
| 7 std::string path = theme_path + "index.html"; | |
| 8 return file_sender(request, reply, path).templatize().send(); | |
| 9 } | |
| 10 catch(...) | |
| 11 { | |
| 12 reply.out() << "I'm a teapot"; | |
| 13 return 418; | |
| 14 } | |
| 15 </%cpp> |
