Elastcode Elastcode the platform
Reference manuals

Four pillars of the platform.

Quick start

First two files you'll write.

hello.epl — basic EPL script
// hello.epl
print "Hello, World!\n";

class TGreeter {
    string Name;
}

int TGreeter::Greet() {
    print "Hello, " . Name . "!\n";
    return 1;
}

TGreeter @greeter;
greeter->Name = "Developer";
greeter->Greet();
THTTP_MyApp.epl — HTTP module skeleton
class THTTP_MyApp : public THTTP_Module {
    int TemplId;
}

virtual int THTTP_MyApp::Prepare() {
    LoadJson();  // Loads act.json routes
    return 1;
}

int THTTP_MyApp::OnIndex(TAction ptr Action) {
    Action->OutText = "<h1>Welcome</h1>";
    return 1;
}

Both ship in the platform tree under /Work/HSRV_DSM_2_0_run/. The HTTP module pattern is exactly how Elastbiz Code itself is built — see ElastbizCode/THTTP_GitHost.epl for a production reference.

Browse by topic

Every section, one click away.