Open adamwong246 opened 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)
+0.5, for use with this package: https://github.com/dalgard/meteor-viewmodel which uses dynamic attribute syntax (makes the code a bit cleaner)
+1 for &attributes
@mordra: For dalgard:viewmodel
, I recommend the syntax that has since been added by dalgard:jade
.
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.