You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
html/template: most likely work on native mode but it's best to use namespace mode [^1]
Footnotes
Currently templ only support attr with prefix @_:a-z (source). Looking at their git history, seems they open for changes 🤔 ↩
Go standard html templating sanitize attribute value except attribute name with namespace or data- prefix. The sanitizer may break the micro-syntax. For example, .value="prop.count~>my.count"may transform into .value="prop.count~>my.count" 🤔 ↩
The text was updated successfully, but these errors were encountered:
DrSensor
added
the
meta thread
Spec and Draft but in several comments. Mostly this kind of issue are locked to keep it clean.
label
Jul 15, 2023
Templating
✅ HTML
✅ XHTML
❌ JSX (JavaScript)
❌ templ (Go) 1
❔ Laravel Blade (PHP)
✅ Django (Python)
✅ ERB (Ruby)
✅
html/template
(Hugo|Go) 2❌ WebC (11ty|JavaScript)
✅ Tera (Zola|Rust)
✅ Eta / EJS (JavaScript)
✅ Liquid
✅ Jinja / Nunjucks / ...
✅ Svelte (JavaScript)
❌ Vue (JavaScript)
❔ Astro (JavaScript)
❔ Angular (JavaScript)
Processor
✅ Lambda Soup (Soupault|OCaml)
❔ parse5 (JavaScript)
✅ lxml (Python)
❔ lol-html (Rust, HTMLRewriter|JavaScript)
Workaround
html/template
: most likely work on native mode but it's best to use namespace mode [^1]Footnotes
Currently templ only support attr with prefix
@
_
:
a-z
(source). Looking at their git history, seems they open for changes 🤔 ↩Go standard html templating sanitize attribute value except attribute name with namespace or data- prefix. The sanitizer may break the micro-syntax. For example,
.value="prop.count~>my.count"
may transform into.value="prop.count~>my.count"
🤔 ↩The text was updated successfully, but these errors were encountered: