jlong/serve — Issue #58: "serve export" exports layout directory
Author: Rocketpilot
Created: 2011-11-14 13:29:52+00:00
State: open

From the examples I've seen, and from the default project you get when you run "serve create project", the best practice seems to be to create a /views/layouts/default.html.erb file for the overall page layout. When you come to export the project to html, a /layouts/default.html file is also exported. Changing the file-name to _defaults.html.erb prevents this from happening, but it kind of feels like a weird and unexpected extra step to have to go to in order to create a clean export.

I think either the docs need to clarify what's going on here, or the export function should treat the /layouts/ folder as special in some way, regardless of what the files inside are named.