Wondering about #SyntaxHighlighting in #VScodium:
Is #Perl’s #TemplateToolkit actually TT in HTML or HTML in TT? 🤔
See comment for example.
| TT code embedded into HTML/… | |
| HTML/… snippets in TT code |
Wondering about #SyntaxHighlighting in #VScodium:
Is #Perl’s #TemplateToolkit actually TT in HTML or HTML in TT? 🤔
See comment for example.
| TT code embedded into HTML/… | |
| HTML/… snippets in TT code |
How to render a Unicode char by its name in #Perl’s #TemplateToolkit?
For example in Perl I’d write "\N{THIN SPACE}". I need that space but I don’t want to use an invisible thin space in my TT source, of course. TT doesn’t seem to support the same syntax. Any ideas?
EDIT: I’ve found an acceptable solution. Still open for other solutions with native TT syntax. See https://ieji.de/@dboehmer/115554830563380338
@[email protected] Thank you for your ideas! ❤️ I’ve found a somewhat satisfactory solution by exposing a Perl function to the TT namespace. See this commit: https://gitlab.com/coocook/coocook/-/commit/d09c6dbe63f72ee9a9db66b7cd7d85a009eff1a2 I’d certainly not extend Template Toolkit’s HTML filter to ignore some special entity 🙈 #Perl #TemplateToolkit
I just used the html base tag for the first time in perl's Template::Toolkit engine and it worked fine ☺️