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

Render Content without a Layout #73

Open
whitehat101 opened this issue Jan 15, 2013 · 1 comment
Open

Render Content without a Layout #73

whitehat101 opened this issue Jan 15, 2013 · 1 comment

Comments

@whitehat101
Copy link
Contributor

My stasis project uses a common layout for almost all pages. My deliverable is a HTML fragment that a user would paste into a larger CMS. My rails-inspired assumption was that layout false in a before block would render the code without the layout, but this errors.

I want to preview/test my code in the "actual" layout, and have stasis generate a downloadable fragment side-by-side.

My solution was to create a simple haml layout:

= yield

I set the layout to that file for that controller. Could layout false have the same effect as my blank layout?

@hughbien
Copy link
Contributor

Yikes, sorry about creating a new issue. I was hoping the pull request would automatically attach to the referenced issue #.

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

No branches or pull requests

2 participants