mquandalle / meteor-jade

The Jade template engine for Meteor/Blaze
http://atmospherejs.com/mquandalle/jade
MIT License
307 stars 39 forks source link

&attributes not working #127

Open adamwong246 opened 9 years ago

adamwong246 commented 9 years ago

The "and attributes" syntax does not appear to work. http://jade-lang.com/reference/attributes/

I've tested against online jade-to-html translators and it appears to be specific to this package.

mquandalle commented 9 years ago

We currently support

input($dyn = attrs)

Which is equivalent to spacebars

<input {{attrs}}>

We probably want to support the jade syntax instead of our custom $dyn thing. That would be

input&attributes(attrs)
mordrax commented 9 years ago

+0.5, for use with this package: https://github.com/dalgard/meteor-viewmodel which uses dynamic attribute syntax (makes the code a bit cleaner)

dgtlife commented 9 years ago

+1 for &attributes

dalgard commented 9 years ago

@mordra: For dalgard:viewmodel, I recommend the syntax that has since been added by dalgard:jade.