How can I pass parameters to a Blaze template


#1

I have a component that is a markdown editor. I’m going to use it for new items, and editing items just the same.

I’d like to do something like:

{{> editor note=foobarbaz}}

Now foobarbaz is either an existing note or a brand new one for creation.

How can I access foobarbaz from within the editor template?


#2

try: {{note}}

Some interesting options on blaze: https://www.discovermeteor.com/blog/spacebars-secrets-exploring-meteor-new-templating-engine/