aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/chapter5_advance_features/lesson04_externals/code.gleam1
-rw-r--r--src/try_gleam.gleam7
2 files changed, 3 insertions, 5 deletions
diff --git a/src/content/chapter5_advance_features/lesson04_externals/code.gleam b/src/content/chapter5_advance_features/lesson04_externals/code.gleam
index be4aff0..ade2c54 100644
--- a/src/content/chapter5_advance_features/lesson04_externals/code.gleam
+++ b/src/content/chapter5_advance_features/lesson04_externals/code.gleam
@@ -15,4 +15,3 @@ pub fn now() -> DateTime
pub fn main() {
io.debug(now())
}
-
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),