diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-02-19 18:50:50 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-02-19 18:50:50 -0500 |
| commit | 058a028aef6f056a31d1e9a09fa83d498c553b78 (patch) | |
| tree | 21f0be237338d13ebc9380aee2a1db5afaad53d6 /test/lang.tm | |
| parent | 29849d145787fac5df454d9314c98570488045ce (diff) | |
Switch to langs using constructors
Diffstat (limited to 'test/lang.tm')
| -rw-r--r-- | test/lang.tm | 4 |
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({ $/&/="&", $/</="<", @@ -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): |
