author | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:01 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:01 (UTC) |
commit | d3e8a3f68b62668af9bc992e94dfb3c822d270dc (patch) (side-by-side diff) | |
tree | 87a5f43f5075dcfc0c0033a4ca50eb990d498e70 /htdocs/simple.chtml | |
parent | 85471d7c2c74035399ba7047f409fe6248e1d6f0 (diff) | |
download | sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.zip sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.gz sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.bz2 |
made use of pragma main
-rw-r--r-- | htdocs/simple.chtml | 3 |
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 <iframe> here, but your browser does not seem to support it. That is okay, it still will open links somehow.</p> </iframe> </div> </%method> |