New modules.
WrenCI / linux (push) Waiting to run
WrenCI / mac (push) Waiting to run
WrenCI / windows (push) Waiting to run

This commit is contained in:
2026-01-24 19:35:43 +01:00
parent 1a08b3adf0
commit 236d69c2d7
118 changed files with 315687 additions and 6 deletions
+14
View File
@@ -0,0 +1,14 @@
// retoor <retoor@molodetz.nl>
import "jinja" for Environment, DictLoader
var env = Environment.new(DictLoader.new({
"header": "<header>{{ title }}</header>",
"main": "{\% include \"header\" \%}content",
"with_ctx": "{\% include \"header\" with context \%}",
"without_ctx": "{\% include \"header\" without context \%}"
}))
System.print(env.getTemplate("main").render({"title": "Hello"})) // expect: <header>Hello</header>content
System.print(env.getTemplate("with_ctx").render({"title": "Test"})) // expect: <header>Test</header>
System.print(env.getTemplate("without_ctx").render({"title": "Test"})) // expect: <header></header>