3 ms·
https://github.com/moot/riotjs/blob/master/riot.js#L12-L21 https://github.com/moot/riotjs/blob/master/riot.js#L12-L21 By only supporting simple single property
by jashkenas 13y ago
https://github.com/moot/riotjs/blob/master/riot.js#L12-L21 https://github.com/moot/riotjs/blob/master/riot.js#L12-L21
By only supporting simple single property accesses. All that this can do is print values from an object — no loops, conditionals, filters, methods, or anything else — like the others support. Think string interpolation, not templates.
- tipiirai 13y agoYeah. The idea is to support variable substitution (string interpolation) only. The loops are supposed to be done on the Presentation layer.
- jasonlotito 13y agoYou should remove the need to wrap the replacement strings in {} so the templates don't need to be rewritten. As it stands now, you're requiring people to write a template once, than rewrite it, and then debug the final result. Better to just use basic HTML.