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

Example #1

Closed
clearly opened this issue Apr 16, 2013 · 3 comments
Closed

Example #1

clearly opened this issue Apr 16, 2013 · 3 comments

Comments

@clearly
Copy link

clearly commented Apr 16, 2013

Can you provide an example template that uses this?

@mateusmaso
Copy link
Owner

sorry for the bad documentation, it is a very simple plugin for handlebars.js that I used for a workaround while I was dealing with this problem with a project.

here is a sample usage of the nested helper:

<div id="main">
   {{view ContentView title="{{t 'content.title'}}" width=200 height=400}}
</div>

*note: the parse will only work if inside a string "" because handlebars do not allow the other way (syntax error), also beware when using multiple quotes inside the string.

@clearly
Copy link
Author

clearly commented Apr 16, 2013

So this only allows for one level of nesting then?

@mateusmaso
Copy link
Owner

unfortunately yes.. I dont recommend you to go deep nesting, check out the discussion with handlebars.js team handlebars-lang/handlebars.js#222

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