peerlibrary / meteor-blaze-components

Reusable components for Blaze
http://components.meteorapp.com/
BSD 3-Clause "New" or "Revised" License
354 stars 26 forks source link

In-line component creation for lack of method params #148

Closed janat08 closed 7 years ago

janat08 commented 7 years ago

{{> button attributeDOM newTab href=data.url attribute=data.color attribute="ui button large"}}

So you can just make button with href and expect new tab mixin to open tab instead of redirect for lack of ability to pass in variables to methods inline, but it's just that much easier to make a whole new component.

mitar commented 7 years ago

I do not understand what you are asking. You can pass arguments as keyword arguments to a component.

janat08 commented 7 years ago

Oh lol, so {{button arghs mixin='attributeDOM newTab'}}?

janat08 commented 7 years ago

oh well yea, and then there're actual arguments for method.