4 ms·
I can't wrap my head around why anyone would like to use a tag language. Feel like some kind of XML hell.
by akkadak 8y ago
I can't wrap my head around why anyone would like to use a tag language. Feel like some kind of XML hell.
- timsayshey 8y agoThey wouldn't, they would just use Lucee's script syntax instead which is very similar to JavaScript.
- aidos 8y agoIt has its uses. It's a good fit for the actual templating part where it feels pretty natural mixed in with html.
- mhd 8y agoThat’s how I feel about JSX, but it seems pretty well accepted these days. Spurious end tags were once regarded with more horror.
- bdcravens 8y agoThe general best practice is script-based syntax in your controllers and models, and tag-based in your views. You choose what makes the most sense and is easiest, which feels cleaner than many templating approaches where you're shoving syntax into expression tags.