komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components

Home Page:http://komponent.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with haml generated.

descovi opened this issue · comments

Hi! Thanks for your great work and ideas.

When I generate a component with haml i get this

schermata 2018-07-20 alle 12 45 36

When with haml can be enough

.print-btn

or (if you want to be more verbose)

div{class: 'print-btn'}

Hi, thanks for reporting this.

I prepared a fix: #104

It will be part of the next release.

Could you also change the data attribute for Stimulus in HAML to:

.print-btn{ data: { controller: 'print' } }

@Spone thanks

+1 also for request of @meneerprins

Done: dff5671

Thanks for your feedback!