News for hackers. Stuff that matters.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by akkadak on Thursday September 13, 2018 @07:19AM (#17977696)
I can't wrap my head around why anyone would like to use a tag language. Feel like some kind of XML hell.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by timsayshey on Thursday September 13, 2018 @07:23AM (#17977718)
They wouldn't, they would just use Lucee's script syntax instead which is very similar to JavaScript.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by mhd on Thursday September 13, 2018 @11:22AM (#17979316)
That’s how I feel about JSX, but it seems pretty well accepted these days. Spurious end tags were once regarded with more horror.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by bdcravens on Thursday September 13, 2018 @12:02PM (#17979655)
The 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.
Re:Lucee: A dynamic, Java-based, tag and scripting language ... by aidos on Thursday September 13, 2018 @07:32AM (#17977768)
It has its uses. It's a good fit for the actual templating part where it feels pretty natural mixed in with html.