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

Rendering a handlebars file with a handlebars file #341

Closed
jonathanKingston opened this issue Oct 17, 2012 · 3 comments
Closed

Rendering a handlebars file with a handlebars file #341

jonathanKingston opened this issue Oct 17, 2012 · 3 comments

Comments

@jonathanKingston
Copy link

So I know this can be done in other ways, like using another templating language rather than using handlebars for both.

I would like a native way to escape handlebars blocks and outputs so when the handlebars file is compiled it will work on the following run.

A use case for this is a handlebars file that is rendering views on the server to generate handlebars files for the client to use. One I personally need this for is generating handlebars view files from a command line script, this uses some variables to customise the views on the first run but then will use some being a view template too.

So what I used in my own is: {{{name}}} turns to {{{name}}} and so on.

I totally understand if this is out of scope of this project though.

@wycats
Copy link
Collaborator

wycats commented Oct 17, 2012

You can escape Handlebars expressions:

\{{{name}}}

@wycats wycats closed this as completed Oct 17, 2012
@jonathanKingston
Copy link
Author

Thanks for the heads up, I searched everywhere for this and found nothing on this. Perhaps update the docs somewhere?

@jonathanKingston
Copy link
Author

Also I could see no unit tests for this, would you like me to write one so this feature doesn't regress?

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

2 participants