Skip to content

Commit

Permalink
chore: add missing "handles." in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Olian04 committed Jul 2, 2024
1 parent 74847e4 commit 8461ba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ import handles
import handles/ctx
pub fn main() {
let assert Ok(greet_template) = prepare("Hello {{.}}!")
let assert Ok(greet_template) = handles.prepare("Hello {{.}}!")
let assert Ok(template) =
prepare("{{>greet world}}\n{{>greet community}}\n{{>greet you}}")
handles.prepare("{{>greet world}}\n{{>greet community}}\n{{>greet you}}")
let assert Ok(string) =
run(
handles.run(
template,
ctx.Dict([
ctx.Prop("world", ctx.Str("World")),
Expand Down

0 comments on commit 8461ba3

Please sign in to comment.