Is there a known way to declare additional attributes for a partial? For example:
{{#partial mybutton}}
<mycomponent foo="{{value}}" bar="{{size}}" color="green" hello="there" />
<!-- mycomponent also supports width= attribute -->
{{/partial}}
{{#with myvar1}}
{{> mybutton}}
{{/with}}
{{#with myvar2}}
{{> mybutton width="300"}} <- this syntax would be pretty handy
{{/with}}
I simply want to use mycomponent with some default configuration and then I want to extend it with a new attribute only for the next instance.
Is there a known way to declare additional attributes for a partial? For example:
{{#partial mybutton}} <mycomponent foo="{{value}}" bar="{{size}}" color="green" hello="there" /> <!-- mycomponent also supports width= attribute --> {{/partial}} {{#with myvar1}} {{> mybutton}} {{/with}} {{#with myvar2}} {{> mybutton width="300"}} <- this syntax would be pretty handy {{/with}}I simply want to use
mycomponentwith some default configuration and then I want to extend it with a new attribute only for the next instance.