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.

➡️ Stable 0.5x Web Development
5,644
Comments
20
Years Active
5
Top Authors
#9684
Topic ID

Activity Over Time

2007
16
2008
59
2009
183
2010
273
2011
450
2012
463
2013
414
2014
314
2015
242
2016
327
2017
319
2018
205
2019
198
2020
253
2021
289
2022
333
2023
478
2024
406
2025
410
2026
12

Keywords

PHP US JS OK sgmljs.net CSP mozilla.org Handlebars.js JSX Emblem.js template templating html language templates js engine escaping inline json

Sample Comments

rickette Dec 3, 2024 View on HN

Why Templ? What's wrong with idomatic html/template.

ComputerGuru Dec 26, 2017 View on HN

This is closer to an html templating language than anything else.

pkstn Aug 29, 2016 View on HN

Template libraries are fine, but there are cases where you hope you could just write JavaScript..

racketman4 Aug 20, 2009 View on HN

The template language isn't for you.

Semaphor Nov 9, 2012 View on HN

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.

chris_wot Dec 29, 2015 View on HN

How would you build a templating framework in JavaScript?

varbhat Jul 12, 2020 View on HN

What's the real advantage of using this over HTML template rendering?

kapv89 Jun 16, 2013 View on HN

Oh please, "template-engines-thingies" don't even come close to the concept of directives

galangalalgol Dec 19, 2024 View on HN

What languages have better template syntax?

krapp Jan 22, 2020 View on HN

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