5 <div class="container">
\r
8 Layouts allow you to set a, well, layout for your pages.
\r
9 This very site is using a NVelocity layout, <a href="${siteRoot}/code/showCode.castle?file=Views/Layouts/default.vm">click here</a> to see its source
\r
10 and <a href="${siteRoot}/code/showCode.castle?file=Views/LayoutsArea/home/index.vm">click here</a> to see this page source.
\r
14 To associate a layout with your controller, use the Layout attribute:
\r
19 public class HomeController : Controller
\r
21 public void MyAction()
\r
25 public void OtherAction()
\r
27 // You can always override which layout should be used
\r
28 LayoutName = "printable";
\r