Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

hyurl/sfn-sdopx-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sfn-Sdopx-Engine

Sdopx template engine for sfn framework.

For more information about Sdopx, please visit www.sdopx.com.

Install

npm i sfn-sdopx-engine

Example

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");
    }
}

API

new SdopxEngine(options?: SdopxOptions)

Interface NunjucksOptions includes:

  • left_delimiter: string default: {.
  • right_delimiter: string default: }.
  • force_compile: boolean The opposite to cache.
  • compile_check: boolean Watch the file and recompile when it's been modified.

About

Sdopx template engine for sfn framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published