How can I pass parameters to a Blaze template

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?

try: {{note}}

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

1 Like