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

Using partials #61

Open
AliaksandrBadretdzinau opened this issue Jul 23, 2019 · 0 comments
Open

Using partials #61

AliaksandrBadretdzinau opened this issue Jul 23, 2019 · 0 comments

Comments

@AliaksandrBadretdzinau
Copy link

Hello, guys!
How to use JavaScript syntax like this Handlebars.registerPartial() ?

Include partials in template using pybars:

output = template({
'people': [
{'firstName': "Yehuda", 'lastName': "Katz"},
{'firstName': "Carl", 'lastName': "Lerche"},
{'firstName': "Alan", 'lastName': "Johnson"}
]}, helpers=helpers, partials=partials)

But i want to include partials early and separate from template function.

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

No branches or pull requests

1 participant