ultraq / thymeleafjs-todo

Example project for showcasing ThymeleafJS
5 stars 0 forks source link

Extract ThymeleafView component into own module #2

Open ultraq opened 6 years ago

ultraq commented 6 years ago

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.

qur2 commented 5 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:

Keep up the good work!