Diffstat (limited to 'htdocs/exceptions/preprocess.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r-- | htdocs/exceptions/preprocess.chtml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/exceptions/preprocess.chtml b/htdocs/exceptions/preprocess.chtml index 88b8741..e42b102 100644 --- a/htdocs/exceptions/preprocess.chtml +++ b/htdocs/exceptions/preprocess.chtml | |||
@@ -1,48 +1,49 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | b_strict = false; | 5 | b_strict = false; |
5 | PN_PREV("/exceptions","exceptions","exception handling overview"); | 6 | PN_PREV("/exceptions","exceptions","exception handling overview"); |
6 | PN_NEXT("/exceptions/compile","compile-time","compile-time errors"); | 7 | PN_NEXT("/exceptions/compile","compile-time","compile-time errors"); |
7 | </%constructor> | 8 | </%constructor> |
8 | <%codemethod string title() %> | 9 | <%codemethod string title() %> |
9 | return "preprocessor exceptions handling"; | 10 | return "preprocessor exceptions handling"; |
10 | </%codemethod> | 11 | </%codemethod> |
11 | <%method void content() %> | 12 | <%method void content() %> |
12 | <h1>site-C-ing preprocessor exception handling</h1> | 13 | <h1>site-C-ing preprocessor exception handling</h1> |
13 | <p> | 14 | <p> |
14 | It was one of those days when you just can't type right and can't think of | 15 | It was one of those days when you just can't type right and can't think of |
15 | what you're typing. It is not unusual that, under such circumstances, you end | 16 | what you're typing. It is not unusual that, under such circumstances, you end |
16 | up with a code like <a | 17 | up with a code like <a |
17 | href="/view/htdocs/exceptions/development/preprocess.chtml" target="insert" | 18 | href="/view/htdocs/exceptions/development/preprocess.chtml" target="insert" |
18 | title="the link opens in the frame below">this</a> -- by the time you were | 19 | title="the link opens in the frame below">this</a> -- by the time you were |
19 | about to close your <code><%code></code> block you were thinking about | 20 | about to close your <code><%code></code> block you were thinking about |
20 | some constructor in some component elsewhere in the universe. | 21 | some constructor in some component elsewhere in the universe. |
21 | </p> | 22 | </p> |
22 | <p> | 23 | <p> |
23 | <em>site-C-ing</em> parser will see the inconsistency and throw an exception | 24 | <em>site-C-ing</em> parser will see the inconsistency and throw an exception |
24 | which will be caught and passed to <a | 25 | which will be caught and passed to <a |
25 | href="/view/htdocs/handlers/exception_dev" target="insert" title="the link | 26 | href="/view/htdocs/handlers/exception_dev" target="insert" title="the link |
26 | opens in the frame below">the handler</a>, specified in <a | 27 | opens in the frame below">the handler</a>, specified in <a |
27 | href="/view/htdocs/exceptions/development/.scrc" target="insert" title="the | 28 | href="/view/htdocs/exceptions/development/.scrc" target="insert" title="the |
28 | link opens in the frame below">the configuration file</a>, which will produce | 29 | link opens in the frame below">the configuration file</a>, which will produce |
29 | some nice, human-readable <a href="/exceptions/development/preprocess" | 30 | some nice, human-readable <a href="/exceptions/development/preprocess" |
30 | target="insert" title="the link opens in the frame below">output</a>. Well, | 31 | target="insert" title="the link opens in the frame below">output</a>. Well, |
31 | you may not wish to give out all this information in the production | 32 | you may not wish to give out all this information in the production |
32 | environment, so you just put in your <a | 33 | environment, so you just put in your <a |
33 | href="/view/htdocs/exceptions/production/.scrc" target="insert" title="the | 34 | href="/view/htdocs/exceptions/production/.scrc" target="insert" title="the |
34 | link opens in the frame below">configuration file</a> some <a | 35 | link opens in the frame below">configuration file</a> some <a |
35 | href="/view/htdocs/handlers/exception_prod" target="insert" title="the link | 36 | href="/view/htdocs/handlers/exception_prod" target="insert" title="the link |
36 | opens in the frame below">different handler</a>, which just gives user <a | 37 | opens in the frame below">different handler</a>, which just gives user <a |
37 | href="/exceptions/production/preprocess" target="insert" title="the link | 38 | href="/exceptions/production/preprocess" target="insert" title="the link |
38 | opens in the frame below">a friendly yet lame excuse</a>. | 39 | opens in the frame below">a friendly yet lame excuse</a>. |
39 | </p> | 40 | </p> |
40 | 41 | ||
41 | <div class="insert"> | 42 | <div class="insert"> |
42 | <iframe id="insert" name="insert" src="about:blank" width="95%" height="300"> | 43 | <iframe id="insert" name="insert" src="about:blank" width="95%" height="300"> |
43 | <p>I wanted to put an <iframe> here, but your browser does not seem to | 44 | <p>I wanted to put an <iframe> here, but your browser does not seem to |
44 | support it. That is okay, it still will open links somehow.</p> | 45 | support it. That is okay, it still will open links somehow.</p> |
45 | </iframe> | 46 | </iframe> |
46 | </div> | 47 | </div> |
47 | 48 | ||
48 | </%method> | 49 | </%method> |