This package has been deprecated

Author message:

this package is no longer being used

sfn-whatstpl-engine
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Sfn-WhatsTPL-Engine

WhatsTPL template engine for sfn framework.

For more information about WhatsTPL, please visit github.com/hyurl/whatstpl.

Install

npm i sfn-whatstpl-engine

Example

import { HttpController, route } from "sfn";
import { WhatstplEngine } from "sfn-whatstpl-engine";

var engine = new WhatstplEngine();

export default class extends HttpController {
    engine: WhatstplEngine = engine;

    @route.get("/whatstpl-test")
    index() {
        return this.view("whatstpl-test.html");
    }
}

API

new WhatstplEngine(options?: WhatstplOptions)

Interface WhatstplOptions includes:

  • removeComments?: boolean Whether or not to remove the comments when ernder HTML.
  • timeout: number Used when the program is run in a browser and load remote template via Ajax.

Readme

Keywords

Package Sidebar

Install

npm i sfn-whatstpl-engine

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

4.44 kB

Total Files

7

Last publish

Collaborators

  • ayonli