A web framework for Hashlink.
package;
import xing.Xing;
class Main {
public static function main() {
var x = new Xing();
x.registerRoute("/", function(req, res) {
res.setBody("Hello World");
res.send();
});
x.listen("0.0.0.0", [8000]);
}
}
This Haxe library depends on Hashlink PicoHTTP module, so please install that before installing this.
To install Xing
use:
haxelib git xing https://github.com/nevergarden/xing
.
- Routing
- Template Engine
This is a work in progress but routing and template engine works for now.