node.tmpl
node-module, .\src\tmpl.jsgets the parsed comments and generates the html
- Functions
- public generate(obj, out)
iterates over the generated object and generates html for each
file and an index file indexitems
- Parameter
- public index(arr, types)
generates the index-file
to adjust HTML see index.jade in the templates folder
- Parameter
- public items(arr, file, index, types)
generates the markup for each file
to adjust HTML see module.jade in the templates folder
- Parameter
the array of all elements adjusted for index index
- public render(tmplName, data, callback)
compiles the data
passes the data to the jade compiler and calls the given callback with the html
- Parameter
- public writeHTML(html, name);
writes html! simple as that
writes the given html to the defined path-name
- Parameter
- Usage
var tmpl = require('tmpl');