Skip to content

Commit

Permalink
fix broken readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
sk222sw authored and lpil committed Jun 12, 2024
1 parent a35f51f commit 04fcd44
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@ Gleam bindings to the [bbmustache][bbmustache] templating library.

```gleam
import gleam/bbmustache.{string}
import gleam/expect
import gleeunit/should
pub fn main() {
let assert Ok(template) = bbmustache.compile("Hello, {{name}}!")
let rendered = bbmustache.render(template, [
string("name", "World"),
])
let rendered = bbmustache.render(template, [#("name", string("World"))])
expect.equal(rendered, "Hello, World!")
should.equal(rendered, "Hello, World!")
}
```

Expand Down

0 comments on commit 04fcd44

Please sign in to comment.