jferris / effigy

Ruby views without a templating language
http://rdoc.info/projects/jferris/effigy
MIT License
206 stars 6 forks source link

sinatra layouts #12

Open croaky opened 14 years ago

croaky commented 14 years ago

Perhaps best in sinatra-effigy. What's the call on framework extensions existing inside or outside of Effigy? Saw another ticket about that.

jferris commented 14 years ago

Effigy is small enough that I think it's easiest to keep everything in one gem. If I get a patch that provides tested sinatra support, I'll apply it.

croaky commented 14 years ago

This is tested, but doesn't provide layout support. You want to bring in the Sinatra extension in some way first, then we can worry about layouts?

http://github.com/dancroak/sinatra-effigy

Not sure how'd you want to organize things. If you have an opinion, I can take a stab at it, too. May not pass Reek as-is.

ghost commented 14 years ago

I've been working on tilt-effigy for adding effigy support to tilt. I think it is going to be merged into tilt, and hopefully Sinatra itself eventually but I'm still waiting on a reply from Ryan Tomayko.

It supports:

http://github.com/robgleeson/tilt-effigy for anyone who is curious. The sinatra 1.0+ extension is available at http://github.com/robgleeson/sffigy and uses tilt-effigy behind the scenes.

Dan Croaks work is good too, but I found myself really wanting to have layouts with partials.

Thanks, Rob