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
Poll ends at .

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

Daniel Böhmer (@[email protected])

@[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

ieji.de
I am now very pissed off with @gohugoio and its documentation. I knew it was too good to last! It has templates and variables, and according to the doco this `{{ $favorite_food := “Gazelle” }} {{ $favorite_food }}` should output the word "Gazelle" in a page. It does not. I stick that in my content markdown file, and I get the raw code back out. OK, fine, I'll write a small #perl / #TemplateToolkit script to turn a data structure into a #markdown bulleted list instead as God intended.

I just used the html base tag for the first time in perl's Template::Toolkit engine and it worked fine ☺️

#html #perl #templatetoolkit