Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added 'multiple' option to command line render #165

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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