-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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
- Vue: namespace mode
- JSX: namespace mode
- WebC: prefix mode? 🤔
- Laravel Blade: most likely work on native mode 🤔
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"🤔 ↩