3 ms·
We use virtual jade at work. It works with most virtual doms that use some form of h(name, attrs, children) calls. We have webpack hot reloading so we can work
by nojvek 8y ago
We use virtual jade at work. It works with most virtual doms that use some form of h(name, attrs, children) calls.
We have webpack hot reloading so we can work on UI without any page refreshes.
It’s been very productive. I love the brevity of jade/pug. Jsx feels like a lot of boilerplate braces and ending tags.
https://github.com/tdumitrescu/virtual-jade https://github.com/tdumitrescu/virtual-jade
- pjungwir 8y agoI've been using pug with the babel plugin for a React project, and I really like it. I'm a fan of Haml for server-side rendered Rails views, too. I'm surprised pug isn't more widely used in front-end dev, since it is so popular in Node apps. Also: projects are still using the "jade" name? I thought they were forced to change?
- lf-non 8y agopug is really nice (as is haml). The only reason I bear with the superfluous verbosity of JSX is because it plays well with typescript. The moment you switch to text based templates typesafety goes out of the window. I really wish javascript/typescript had a good builder syntax like Ruby. Hyperstack [1] (previously Hyperloop) is a great project that uses ruby blocks for component composition. I wish this was possible in javascript. [1] https://hyperstack.org/ https://hyperstack.org/