We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I come from a project who use jade as template engine. Is possible combine both jade template with a ripple template?
With jade, I can do:
jadeTemplate({item: item});
For the moment I do something like
var Template = ripple(jadeTemplate());
I need to call it, to get the template as string.
Can I do in other way?
The text was updated successfully, but these errors were encountered:
You could compile a jade template to a string or HTML and pass that into ripple as the template to parse, like you're doing.
Do you want to use the view data to render the jade template to a string? If so, you could do something like,
function jade(options) { return function(View) { View.on('created', function(view){ view.template = jadeTemplate(view); }); } }
And then:
var Template = ripple(jadeString) .use(jade());
Depends what you're trying to do though
Sorry, something went wrong.
Thanks for your help!
I'm really new with ripple and i'm in the middle of migration from component/dom to ripple. :)
No branches or pull requests
I come from a project who use jade as template engine. Is possible combine both jade template with a ripple template?
With jade, I can do:
For the moment I do something like
I need to call it, to get the template as string.
Can I do in other way?
The text was updated successfully, but these errors were encountered: