komposable / komponent

An opinionated way of organizing front-end code in Ruby on Rails, based on components
http://komponent.io
MIT License
427 stars 31 forks source link

Render a component without a partial #138

Open Spone opened 5 years ago

Spone commented 5 years ago

Drawing inspiration from https://github.com/jensljungblad/components#rendering-components-without-a-partial we could have a render method in our component module, that would return the HTML code for the component.

It would be a nice performance improvement for very simple modules (icons, buttons...)

xdmx commented 5 years ago

This is also the approach taken by mountain view, which you may already know as I saw a issue from you a couple of years ago :smile: