begriffs / styleguide_rails

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

use haml when available #44

Closed losingkeys closed 11 years ago

losingkeys commented 11 years ago

Note: there's probably a much better way to do this.

I just looked at how the haml-rails gem was doing it and played with pry a little. It seems to work though :)

losingkeys commented 11 years ago

Side note: this fixes #42

begriffs commented 11 years ago

This is great!

Can you also make the code more paranoid? Like if the rails app is using an unknown templating engine, fall back to erb. Also maybe add a widget template for slim.

losingkeys commented 11 years ago

Good idea, done and done. It seems to work just fine in my manual tests.

begriffs commented 11 years ago

:heart: it