var reply = Template.confirmFeedback({
name: name.split(' ')[0],
email: addr });
Not 100% sure if this what you are looking for since I haven't tried it,but this looks like what you are looking for:http://docs.meteor.com/#ui_renderwithdata
On Thursday, April 3, 2014 10:30:25 AM UTC-4, Gregg Cooke wrote:
--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I've found it very useful to have the old Spark engine render a template and pass me back the string of HTML, like so:
I have a dozen examples of this technique littering my code now, and while there may be better ways to do the same thing, right now this is the one thing that stands in my way of switching over to Meteor 0.8.0 -- because Blaze doesn't seem to have a way to (a) output a rendered template as a string, and (b) forget about the variables that went into rendering the template.How do I get this done using Blaze templates? Is there another Handlebars-like template engine I can use? How do the Meteor team expect people to use the templating engine to render HTML strings in v0.8.0+ (ie, what's the best method intended to be)?
--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.