You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
I set the layout to that file for that controller. Could
layout false
have the same effect as my blank layout?The text was updated successfully, but these errors were encountered: