Sdopx template engine for sfn framework.
For more information about Sdopx, please visit www.sdopx.com.
npm i sfn-sdopx-engine
import { HttpController, route } from "sfn";
import { SdopxEngine } from "sfn-sdopx-engine";
var engine = new SdopxEngine();
export default class extends HttpController {
engine: SdopxEngine = engine;
@route.get("/sdopx-test")
index() {
return this.view("sdopx-test.opx");
}
}
Interface NunjucksOptions
includes:
left_delimiter: string
default:{
.right_delimiter: string
default:}
.force_compile: boolean
The opposite tocache
.compile_check: boolean
Watch the file and recompile when it's been modified.