simplator-subtemplates
Simplator filters to run sub-templates. Allow simplator to run sub-templates
Getting Started
Install the module with: npm install simplator-subtemplates --save
var fs = simplator = templates = nameTmpl: simplator addressTmpl: simplator subTemplates = ; subTemplates; var tmplt = simplator results = ;
Results will contains "Andrea,Parodi\nvia Casata,Genoa"
OR, to render arrays sub-context, use:
var tmplt = simplator; results = ;
Results will contains "Andrea,Parodi\nvia Casata,Genoa\tAnother address,Roma"
Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
License
Copyright (c) 2013 parroit
Licensed under the MIT license.