aboutsummaryrefslogtreecommitdiff
path: root/src/try_gleam.gleam
diff options
context:
space:
mode:
Diffstat (limited to 'src/try_gleam.gleam')
-rw-r--r--src/try_gleam.gleam7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/try_gleam.gleam b/src/try_gleam.gleam
index 63432b8..0f701c8 100644
--- a/src/try_gleam.gleam
+++ b/src/try_gleam.gleam
@@ -121,9 +121,7 @@ fn load_lesson(chapter_path: String, names: FileNames) -> snag.Result(Lesson) {
name: names.name,
text: text,
code: code,
- path: chapter_path
- <> "/"
- <> names.slug,
+ path: chapter_path <> "/" <> names.slug,
previous: None,
next: None,
))
@@ -436,7 +434,8 @@ fn lesson_html(page: Lesson) -> String {
]),
h("article", [#("id", "playground")], [
h("section", [#("id", "left")], [
- htmb.dangerous_unescaped_fragment(string_builder.from_string(page.text,
+ htmb.dangerous_unescaped_fragment(string_builder.from_string(
+ page.text,
)),
h("nav", [#("class", "prev-next")], [
navlink("Back", page.previous),