4 ms·
No mention of Views? The one thing I'd love to understand and is missing vs. Rails/Laraval is an integrated solution of solving the View part of MVC I think? L
by nikodunk 2y ago
No mention of Views? The one thing I'd love to understand and is missing vs. Rails/Laraval is an integrated solution of solving the View part of MVC I think?
Looks like a really beautiful framework.
EDIT: Nevermind, it's in the docs, just not on the main landing page so feels a little more secondary. TLDR they recommend you use Edge/Pug/Nunjucks, htmx, vite for css bundling. Nice!
https://docs.adonisjs.com/guides/views-and-templates/introduction https://docs.adonisjs.com/guides/views-and-templates/introdu...
- ortsa 2y agoAn official mention of Pug? Now, they got me listening. Maybe it's because it's (mostly) markup, but Pug is the only whitespace language that I really gel with. I wish it had more support across the board! Maybe it's the years of Emmet use that's got me biased. I remember getting excited about both of these before they each changed names.
- efilife 2y agoI never saw the appeal of Pug, it's hideous and completely unreadable for me. I can't easily tell where code starts and ends
- ortsa 2y agoI absolutely understand. For me it's the _only_ exception to this feeling. Probably something to do with it not being a programming language, and my own preference for as little nested elements as possible, though I can imagine how anything close to div soup would be completely untenable.
- mewpmewp2 2y agoI heavily dislike Pug, just because it depends on indentation. Maybe I'm just my IDE somehow wrong, but trying to rearrange things seems always so much more complicated and trying to learn this clever syntax instead of doing normal html.