diff --git a/lesson-templates/lesson-13-paths.tm b/lesson-templates/lesson-13-paths.tm index e582846..2a59910 100644 --- a/lesson-templates/lesson-13-paths.tm +++ b/lesson-templates/lesson-13-paths.tm @@ -25,7 +25,7 @@ func main(): = "???" >> path:parent():child("other-file.txt") - = /??? + = (/???) >> dir := (/tmp/test-*.txt):glob() = [???] diff --git a/lesson-templates/lesson-14-langs.tm b/lesson-templates/lesson-14-langs.tm index 6bb1911..250e056 100644 --- a/lesson-templates/lesson-14-langs.tm +++ b/lesson-templates/lesson-14-langs.tm @@ -5,7 +5,7 @@ lang HTML: # Custom escaping rules can be created with `convert` convert(t:Text -> HTML): - t = t:replace_all({$/&/="&", $//=">"}) + t = t:translate({"&"="&", "<"="<", ">"=">"}) return HTML.from_text(t) func paragraph(content:HTML -> HTML):