An opinionated way of organizing front-end code in Ruby on Rails, based on components
MIT License
Bot releases are hidden (Show)
Breaking changes:
Enhancements:
bin/rails stats
rails g komponent:styleguide
to set it uprails g komponent:examples
to generate an examples
file for each existing componentBug fixes:
class
attribute in HAML templatescontent_for
/ yield
which was no longer working across components, since v2.0.0
t
)Published by florentferry over 6 years ago
Enhancements:
Bug fixes:
Published by florentferry over 6 years ago
Enhancements:
Published by florentferry over 6 years ago
Enhancements:
Published by florentferry over 6 years ago
Breaking changes:
render_partial
methodEnhancements:
@block_given_to_component
from an instance variable to a method block_given_to_component
available in the view contextcached: true
optionstylesheet_engine
option to Komponent configurationfrozen_string_literal: true
magic comment is prepended to Ruby filesPublished by florentferry over 6 years ago
Enhancements:
frozen_string_literal
option to optimize performanceautoload_paths
config definition (it was not taken into account)config/application.rb
when you run rails g komponent:install
component
helper available through properties
helper methodPublished by florentferry over 6 years ago
Enhancements:
rails d component button
Bug fixes:
Published by florentferry over 6 years ago
Enhancements:
imports
are now sorted alphabetically every time you run the component generatorthe block_given_to_component?
helper to componentsPublished by florentferry over 6 years ago
Enhancements:
Published by florentferry almost 7 years ago
Enhancements:
css
, scss
, sass
stylesheet engineBug fixes
content_for
work in componentDeprecation
render_partial
is deprecated in favor of default render
frontend/components/admin/button/_button.html.slim
-> frontend/components/admin/button/_admin_button.html.slim
frontend/components/admin/button/button.js
-> frontend/components/admin/button/admin_button.js
frontend/components/admin/button/button.css
-> frontend/components/admin/button/admin_button.css
Published by florentferry almost 7 years ago
Enhancements:
render_partial
helperPublished by florentferry almost 7 years ago
Published by florentferry almost 7 years ago
Enhancements:
rails g komponent:install
)erb
, slim
, and haml
template engines--locale
option to component generator