Version: 3.0.0.beta1
After doing:
rails generate komponent:install
rails generate komponent:styleguide
rails generate komponent:examples
I get the following error:
…/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/komponent-3.0.0.beta1/lib/generators/component/templates/examples.html.haml.erb:1:in `template': undefined local variable or method `component_name' for #<Komponent::Generators::ExamplesGenerator:0x00007f8a51bc7108> (NameError)
Did you mean? @component_name
component_path
Have a look at examples.html.haml.erb:
%h1 <%= @component_name %>
= cdoc "<%= component_name %>"
There’s a missing @ (same with .slim and .erb files). After using it, everything works fine.
Version: 3.0.0.beta1
After doing:
I get the following error:
Have a look at
examples.html.haml.erb:There’s a missing
@(same with .slim and .erb files). After using it, everything works fine.