<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ Newsqueak2
 
 class SaberExampleSite usingPlatform: p = (
 &quot;
-Quick start: Saber withSite: (SaberExampleApplication usingPlatform: Platform new)
+Quick start: Saber withSite: (SaberExampleSite usingPlatform: Platform new)
 
 Copyright 2009 Jeff Olson
 
@@ -65,7 +65,29 @@ class MainBase platform: p parent: theP = SaberView platform: p parent: theP (
 )
 ('as yet unclassified'
 content = (
-	^ ''
+	^ '
+&lt;html&gt;
+	&lt;head&gt;
+		&lt;title&gt;&lt;% block title %&gt;SaberExampleSite&lt;% endblock %&gt;&lt;/title&gt;
+	&lt;/head&gt;
+	&lt;body&gt;
+		&lt;% block content %&gt;example content&lt;% endblock %&gt;
+	&lt;/body&gt;
+&lt;/html&gt;
+	'
+)
+
+)
+
+class FooView platform: plat parent: theP = SaberView platform: platform parent: theP (
+|
+|
+)
+('as yet unclassified'
+content = (
+	^ '&lt;% block title %&gt;Foo, boyeee!&lt;% endblock %&gt;
+	&lt;% block content %&gt;Hello world from /foo! { thingy }&lt;% endblock %&gt;
+'
 )
 
 )
@@ -77,18 +99,26 @@ class SiteRootView platform: p parent: theP = SaberView platform: p parent: theP
 content = (
 	^ defineRawMarkup: [
 	'
-&lt;html&gt;
-	&lt;head&gt;
-		&lt;title&gt;SaberExampleSite&lt;/title&gt;
-	&lt;/head&gt;
-	&lt;body&gt;
-		{ content }
-	&lt;/body&gt;
-&lt;/html&gt;
+&lt;% block title %&gt;SiteRoot view, woot! &lt;% endblock %&gt;
+&lt;% block content %&gt; { content } &lt;% endblock %&gt;
 	'
 	].
 )
 
+)
+
+class NameShowView platform: plat parent: theP = SaberView platform: plat parent: theP (
+|
+|
+)
+('as yet unclassified'
+content = (
+	^ '
+&lt;% block title %&gt;Hello, {nameParam}&lt;% endblock %&gt;
+&lt;% block content %&gt;Hi, {nameParam}. How is {wife}?&lt;% endblock %&gt;
+'
+)
+
 ))
 
 class SiteRoot = SaberHandler(
@@ -115,10 +145,18 @@ class foo = SaberHandler(
 |
 )
 ('as yet unclassified'
+getView = (
+	| parent |
+	parent:: Views new MainBase platform: platform parent: nil.
+	^ Views new FooView platform: platform parent: parent.
+)
+
 onGet: request = (
-	| fooService |
+	| fooService view |
+	view:: getView.
 	fooService:: Domain new FooService new.
-	^ HttpResponse fromString: 'GET handler for /foo. ', fooService getThing.
+	view model at: 'thingy' put: fooService getThing.
+	^ HttpResponse fromString: view render.
 )
 
 )
@@ -143,10 +181,19 @@ class show = SaberHandler(
 |
 )
 ('as yet unclassified'
+getView = (
+	| parent view |
+	parent:: Views new MainBase platform: platform parent: nil.
+	^ Views new NameShowView platform: platform parent: parent.
+)
+
 onGet: request = (
-	| wife |
+	| wife view |
 	wife:: request getFields at: 'wife' ifAbsent: [ 'your sister' ].
-	^ HttpResponse fromString: 'Hi, ', (request getFields at: 'nameParam'), '! How is ', wife, '?'
+	view:: getView.
+	view model at: 'nameParam' put: (request getFields at: 'nameParam').
+	view model at: 'wife' put: wife.
+	^ HttpResponse fromString: view render.
 )
 
 ))
@@ -175,11 +222,10 @@ getView = (
 )
 
 onGet: request = (
-	| body model view |
+	| view |
 	view:: getView.
-	view model at: 'content' put: 'hello world!!! view engine works.'.
-	body:: view render.
-	^HttpResponse fromString: body.
+	view model at: 'content' put: 'This is a handler that matches a request to the root of SaberExampleSite'.
+	^HttpResponse fromString: view render.
 )
 
 ))
\ No newline at end of file</diff>
      <filename>SaberExampleSite.ns2</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8c245b31d84e4716297d0170e455e656ac258e89</id>
    </parent>
  </parents>
  <author>
    <name>Jeffery Olson</name>
    <email>olson.jeffery@gmail.com</email>
  </author>
  <url>http://github.com/olsonjeffery/Saber/commit/6bbb02bb786c1b9a5aa9e806d7fd5bab756e5083</url>
  <id>6bbb02bb786c1b9a5aa9e806d7fd5bab756e5083</id>
  <committed-date>2009-11-05T22:04:07-08:00</committed-date>
  <authored-date>2009-11-05T22:04:07-08:00</authored-date>
  <message>switching SaberExampleSite to use the new SaberView regime pervasively</message>
  <tree>cde254c9af888e548b7d272018279362c09b3876</tree>
  <committer>
    <name>Jeffery Olson</name>
    <email>olson.jeffery@gmail.com</email>
  </committer>
</commit>
