Skip to content

Conversation

berteh
Copy link

@berteh berteh commented Sep 3, 2014

Please merge this request pull. It adds a "--multiple" option to command line render of pystache that renders the provided template for each of the context children.
Output is saved in a file named per either a key in context, or a user-given string.

Usage (in pystache/pystache/tests/examples):

pystache multiple.mustache multiple.json -m out.html

to generate 3 files out-000.html, out-001.html, out-002.html; if there is no 'out.html' key in multiple.json

pystache multiple.mustache multiple.json -m NO

to generate 3 files, named from the value of 'NO' key in multiple.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant