From 71f4cc84c3788c6904ede17cd626a9ca9c349e3b Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 30 Jan 2005 00:57:53 +0000 Subject: initial commit into repository --- (limited to 'htdocs/exceptions/preprocess.chtml') diff --git a/htdocs/exceptions/preprocess.chtml b/htdocs/exceptions/preprocess.chtml new file mode 100644 index 0000000..8516139 --- a/dev/null +++ b/htdocs/exceptions/preprocess.chtml @@ -0,0 +1,46 @@ +% html(); return; /* vim:set ft=sitecing: */ +%%derive layout = "/ancestry/layout.chtml"; +<%constructor> + b_strict = false; + +<%codemethod string title() %> + return "preprocessor exceptions handling"; + +<%method void content() %> +

site-C-ing preprocessor exception handling

+

+ It was one of those days when you just can't type right and can't think of + what you're typing. It is not unusual that, under such circumstances, you end + up with a code like this -- by the time you were + about to close your <%code> block you were thinking about + some constructor in some component elsewhere in the universe. +

+

+ site-C-ing parser will see the inconsistency and throw an exception + which will be caught and passed to the handler, specified in the configuration file, which will produce + some nice, human-readable output. Well, + you may not wish to give out all this information in the production + environment, so you just put in your configuration file some different handler, which just gives user a friendly yet lame excuse. +

+ +
+ +
+ + -- cgit v0.9.0.2