ultimatepp/tutorial/Skylark04/main.cpp
cxl 3bcac67ebb .Skylark tutorial
git-svn-id: svn://ultimatepp.org/upp/trunk@5137 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-07-06 13:16:34 +00:00

28 lines
362 B
C++

#include <Skylark/Skylark.h>
using namespace Upp;
SKYLARK(HomePage, "")
{
http.RenderResult("Skylark04/index");
}
struct MyApp : SkylarkApp {
MyApp() {
root = "myapp";
#ifdef _DEBUG
prefork = 0;
use_caching = false;
#endif
}
};
CONSOLE_APP_MAIN
{
#ifdef _DEBUG
StdLogSetup(LOG_FILE|LOG_COUT);
Ini::skylark_log = true;
#endif
MyApp().Run();
}