Open ultraq opened 6 years ago
I found your project and after getting tired about all the JS madness, I was thinking that thymeleaf is actually quite amazing. I'm happy to see an initiative to port it (at least partially) to JS. After reading this issue, I wanted to add my 2 cents:
th
vs thjs
, size()
vs length
)Keep up the good work!
This component: https://github.com/ultraq/thymeleafjs-todo/blob/master/todo-ui/source/scripts/components/thymeleaf/ThymeleafView.js, combined with these lines: https://github.com/ultraq/thymeleafjs-todo/blob/master/todo-ui/source/scripts/TodoApp.js#L41-L44
It looks like a pattern that I've used elsewhere and could apply to any template engine, like Handebars, Pug, etc... to give templates a kind of react-inspired auto-render functionality. Would be cool if I could turn that into its own module and have it render for the given template engine. Might need some config as each templating library does processing in their own special way.