Sfn-Pug-Engine
Pug template engine for sfn framework.
For more information about pug, please visit https://pugjs.org/.
Install
npm i sfn-pug-engine
Example
;; ;
API
new PugEngine(options?: PugOptions)
Interface PugOptions
includes:
debug: boolean
Iftrue
, the tokens and function body are logged to stdout.compileDebug: boolean
Iftrue
, the function source will be included in the compiled template for better error messages (default:true
).globals: string[]
Add a list of global names to make accessible in templates.