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

Way to do it in javascript? #3

Open
dominicarrojado opened this issue Mar 12, 2016 · 1 comment
Open

Way to do it in javascript? #3

dominicarrojado opened this issue Mar 12, 2016 · 1 comment

Comments

@dominicarrojado
Copy link

Is there a way to do it in javascript like for example Blaze.renderWithData to render a template?

@fadomire
Copy link

fadomire commented Oct 9, 2017

One ugly of doing it is to fake the expected with context like following :
Blaze.render(Blaze.renderNonReactive.call({parentView: {dataVar: {get: function(){ return {_arguments: ['MyTemplateName']} }}}}), $('#MyTemplateName')[0]);

best would be to alter current code and allow for both behavior but i'm not a fan of cofee

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