aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-02-19 18:50:50 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-02-19 18:50:50 -0500
commit058a028aef6f056a31d1e9a09fa83d498c553b78 (patch)
tree21f0be237338d13ebc9380aee2a1db5afaad53d6 /test
parent29849d145787fac5df454d9314c98570488045ce (diff)
Switch to langs using constructors
Diffstat (limited to 'test')
-rw-r--r--test/lang.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lang.tm b/test/lang.tm
index c0add87b..77fd7958 100644
--- a/test/lang.tm
+++ b/test/lang.tm
@@ -1,6 +1,6 @@
lang HTML:
HEADER := $HTML"<!DOCTYPE HTML>"
- func escape(t:Text->HTML):
+ func HTML(t:Text->HTML):
t = t:replace_all({
$/&/="&amp;",
$/</="&lt;",
@@ -11,7 +11,7 @@ lang HTML:
return HTML.without_escaping(t)
- func escape_int(i:Int->HTML):
+ func HTML(i:Int->HTML):
return HTML.without_escaping("$i")
func paragraph(content:HTML->HTML):