Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sinatra layouts #12

Open
croaky opened this issue Mar 30, 2010 · 3 comments
Open

sinatra layouts #12

croaky opened this issue Mar 30, 2010 · 3 comments
Labels

Comments

@croaky
Copy link

croaky commented Mar 30, 2010

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

@jferris
Copy link
Owner

jferris commented Mar 31, 2010

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
Copy link
Author

croaky commented Mar 31, 2010

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
Copy link

ghost commented Apr 7, 2010

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:

  • Layout & Partials
  • Locals
  • Access to the calling scope

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants