aboutsummaryrefslogtreecommitdiff
path: root/test/lang.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/lang.tm')
-rw-r--r--test/lang.tm6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lang.tm b/test/lang.tm
index 777a05b3..29936a62 100644
--- a/test/lang.tm
+++ b/test/lang.tm
@@ -1,6 +1,6 @@
lang HTML:
HEADER := $HTML"<!DOCTYPE HTML>"
- func HTML(t:Text->HTML):
+ convert(t:Text->HTML):
t = t:replace_all({
$/&/="&amp;",
$/</="&lt;",
@@ -11,14 +11,14 @@ lang HTML:
return HTML.without_escaping(t)
- func HTML(i:Int->HTML):
+ convert(i:Int->HTML):
return HTML.without_escaping("$i")
func paragraph(content:HTML->HTML):
return $HTML"<p>$content</p>"
struct Bold(text:Text):
- func HTML(b:Bold -> HTML):
+ convert(b:Bold -> HTML):
return $HTML"<b>$(b.text)</b>"
func main():