Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created January 17, 2011 23:52
Show Gist options
  • Save wfaler/783727 to your computer and use it in GitHub Desktop.
Save wfaler/783727 to your computer and use it in GitHub Desktop.
parentlayout.scala
// parent layout, that uses a LayoutModel to enrich the layout based on request if needed.
val parentLayout = DefaultLayout("default", "doLayout", None, new ParentLayoutModel)
// this is a childLayout for parentLayout, and has the parent set on it, as shown.
val composableLayout = DefaultLayout("child", "doLayout", Some(parentLayout))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment