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

Standardize the component names

Spone opened this issue · comments

I can currently pass AwesomeButton, awesome_button or awesome-button to the generator, and create 3 different components.

We should probably enforce a specific case for component naming.

I think Rails partial files expect _awesome_button.html.slim

On the contrary, I usually name CSS classes with dashes: .awesome-button

Maybe stick to an existing convention? BEM, SmaCSS...