Hacker News new | past | comments | ask | show | jobs | submit login

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.




Yeah. The idea is to support variable substitution (string interpolation) only. The loops are supposed to be done on the Presentation layer.


You 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: