begriffs / styleguide_rails

generate a living styleguide with one command
MIT License
69 stars 10 forks source link

Render Widgets #7

Closed rylnd closed 11 years ago

rylnd commented 11 years ago

First, this PR renames the concept formerly known as a 'module' to 'widget'.

It also adds the ability to (almost) use whatever templating engines are available in their Rails application when registering widgets. It currently works for ERB, HAML, and just plain HTML, although the only thing limiting this is the show action (which has to determine what the correct widget file is by its basename).

Because I extracted the template for a widget into its own partial, I also added a new widgets/ directory for user-defined widgets.

I could polish this PR for a while but I'd rather use this PR for a discussion about style and concepts, @begriffs.

rylnd commented 11 years ago

Also, I believe this addresses #1.