You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
"New: (Notably, in Blaze, keyword arguments to inclusion or block helpers are bundled into a single object which becomes the new data context)"
The example given on the Wiki happens to be a dynamic template rendering pattern, which makes this seem more complicated than it actually is, but it's clear that keyword arguments are bundled into the data context and are accessible from the template.
As expected, the following works:
{{> myTemplate arg1=arg1 arg2=arg2}}
The text was updated successfully, but these errors were encountered:
zdexter
changed the title
Templates should accept keyword arguments
Template include helper should accept keyword arguments
Mar 30, 2014
zdexter
changed the title
Template include helper should accept keyword arguments
Template inclusion helper should accept keyword arguments
Mar 30, 2014
does not work:
Per the Blaze wiki:
"New: (Notably, in Blaze, keyword arguments to inclusion or block helpers are bundled into a single object which becomes the new data context)"
The example given on the Wiki happens to be a dynamic template rendering pattern, which makes this seem more complicated than it actually is, but it's clear that keyword arguments are bundled into the data context and are accessible from the template.
As expected, the following works:
The text was updated successfully, but these errors were encountered: