Closed 7stud closed 5 years ago
Hi @7stud, thanks for the detailed report!
I think you just need to update the version of Ratatouille to the 0.5 release, e.g.:
# mix.exs
defp deps do
[{:ratatouille, "~> 0.5"}]
end
(And then a mix deps.get
, of course.)
Being able to pass those attributes to label
was a relatively recent addition in that release. I'll update the installation instructions in the README here shortly so that this doesn't trip up anyone else.
Sorry that you ran into this! I definitely want getting started to be a smooth experience. Please let me know if you still run into issues after updating.
Okay, updating the ratatouille version worked. If anyone else wants to try, here's a simple modification of the view in the counter example:
def render(model) do
view do
panel(title: "My Counter", background: :red) do
label(content: "Counter is #{model} (+/-)", background: :green)
end
end
end
Pretty neat. Thanks!
Great, glad that worked!
My code:
From the docs:
Okay...so let's copy and paste the exact line from the docs into my code:
Same error:
mix.exs:
I get the same error when I try a background style:
error:
Same thing with a panel instead of a label:
error: