HTML Templating Debates
Comments discuss the merits of Templ and other HTML templating languages like Handlebars, Jinja2, JSX, and standard html/template, questioning their advantages, syntax, and necessity over plain HTML or JavaScript.
Activity Over Time
Top Contributors
Keywords
Sample Comments
Why Templ? What's wrong with idomatic html/template.
This is closer to an html templating language than anything else.
Template libraries are fine, but there are cases where you hope you could just write JavaScript..
The template language isn't for you.
Please read the lines at the top: "alternative to template engines and CSS pre-processors".It's not supposed to be used instead of HTML and CSS overall.
How would you build a templating framework in JavaScript?
What's the real advantage of using this over HTML template rendering?
Oh please, "template-engines-thingies" don't even come close to the concept of directives
What languages have better template syntax?
It seems too low tech to be useful for any project of any complexity. Existing HTML template frameworks do a lot of things like character and syntax aware data escaping (and avoiding double-escaping), template caching, plugins, code generation, tag extension, filters, etc.Other than being slightly more concise and appearing more functional, I don't see the benefit of this over something like Twig or Smarty. At some point you're going to wind up re implementing features that already