<?xml version="1.0" encoding="UTF-8"?>
<wiki>
  <body>&lt;p&gt;By default, the Layout at /App/Layouts/Default.hs is used.&lt;/p&gt;
&lt;p&gt;Example layout &lt;a href=&quot;http://github.com/alsonkemp/turbinado-website/tree/master/App/Layouts/Default.hs&quot;&gt;here&lt;/a&gt;.  The Layout provides the wrapper for the View, but is basically just a View with some extra functions.  In particular, the Layout tells the system where to place the View by adding a call to insertDefaultView:&lt;br /&gt;
&lt;pre&gt;&lt;br /&gt;
&amp;lt;% insertDefaultView %&amp;gt;&lt;br /&gt;
&lt;/pre&gt;&lt;/p&gt;
&lt;h2&gt;Changing Layouts&lt;/h2&gt;
&lt;p&gt;The Controller can dictate that no Layout be used for the View by clearLayout (see /Turbinado/Environment/Settings.hs).&lt;/p&gt;
&lt;p&gt;The Controller can dictate that a particular Layout be used for the View by setLayout &amp;#8220;OtherLayout&amp;#8221;.&lt;/p&gt;</body>
  <created-at type="datetime">2009-11-25T02:49:50-08:00</created-at>
  <id type="integer">236287</id>
  <permalink>architecture-layouts</permalink>
  <repository-id type="integer">76548</repository-id>
  <title>Architecture - Layouts</title>
  <updated-at type="datetime">2009-06-09T18:07:15-07:00</updated-at>
  <user-id type="integer">34693</user-id>
</wiki>
