inesita-rb / inesita

Frontend web application framework in Ruby using Opal.
https://inesita.fazibear.me/
MIT License
259 stars 15 forks source link

Modification of class name #37

Closed ghivert closed 6 years ago

ghivert commented 6 years ago

Hi!

I'm often using BEM to write my CSS, and so I'm doing something like this:

div.navbar__content do
  some_stuff
end

But in the generated HTML, it is:

<div class="navbar_content">
  some_stuff
</div>

Similarly, navbar_content get transformed to navbar-content.

Is there any reason to make such a change?

fazibear commented 6 years ago

There was a PR to make it work like this:

navbar_content -> navbar-content navbar__content -> navbar_content

I think because of bootstrap. So this is the way it works.