redoculous
An async template library in the style of PHP. Try it out!
- Use the entire power of the node runtime.
- Handle asynchronous code easily with
await
- Identify errors fast with accurate stack traces.
Example
;; const path = '/path/to/template.md.doc';const raw = fs; ;
API
render(options: Object) -> Promise<String>
Process a template into text. Takes the following options:
template: String
the template to renderfilepath: String
where to resolverequire
fromglobals: ?Object
the initial variables your template can use
Syntax
# Interpolate exported values easily with: The result is repeating times