summaryrefslogtreecommitdiffabout
path: root/htdocs/simple.chtml
Side-by-side diff
Diffstat (limited to 'htdocs/simple.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r--htdocs/simple.chtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/simple.chtml b/htdocs/simple.chtml
index 845b840..d538b01 100644
--- a/htdocs/simple.chtml
+++ b/htdocs/simple.chtml
@@ -1,33 +1,34 @@
-% html(); return; /* vim:set ft=sitecing: */
+% /* vim:set ft=sitecing: */
%%derive layout = "/ancestry/layout.chtml";
+%%pragma main=page
<%constructor>
b_strict = false;
PN_PREV("/","overview","introduction to site-C-ing");
PN_NEXT("/exceptions","exceptions","exception handling overview");
</%constructor>
<%codemethod string title() %>
return "simple page";
</%codemethod>
<%method void content() %>
<h1>building a really simple page</h1>
<p>
Building a really simple page is really simple. I will not go into much detail
here. The example provided should speak for itself.
</p>
<p>
The component being written doesn't do much but show you the calendar for the
current month. First, take a look at <a
href="/view/htdocs/examples/calendar.chtml" title="the link opens in the frame
below" target="insert">the code</a> and, after you examined it, feel free to check out
<a href="/examples/calendar" title="the link opens in the frame below"
target="insert">the output</a>.
</p>
<div class="insert">
<iframe id="insert" name="insert" src="about:blank" width="95%" height="300">
<p>I wanted to put an &lt;iframe&gt; here, but your browser does not seem to
support it. That is okay, it still will open links somehow.</p>
</iframe>
</div>
</%method>