summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--htdocs/ancestry/layout.chtml4
-rw-r--r--htdocs/ancestry/sources.chtml4
-rw-r--r--htdocs/examples/calendar.chtml1
-rw-r--r--htdocs/index.chtml8
-rw-r--r--htdocs/quickref/index.chtml3
-rw-r--r--htdocs/quickref/metasyntax.chtml37
-rw-r--r--htdocs/style.css8
7 files changed, 53 insertions, 12 deletions
diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml
index df34ad7..4551d04 100644
--- a/htdocs/ancestry/layout.chtml
+++ b/htdocs/ancestry/layout.chtml
@@ -19,16 +19,16 @@
19</%constructor> 19</%constructor>
20<%method void prevnext() %> 20<%method void prevnext() %>
21% if(urlPrev.empty() && urlNext.empty()) return; 21% if(urlPrev.empty() && urlNext.empty()) return;
22% if(descPrev.empty() && descNext.empty()) return; 22% if(descPrev.empty() && descNext.empty()) return;
23 <div class="prevnext"> 23 <div class="prevnext">
24% if(!(urlPrev.empty() || descPrev.empty())) { 24% if(!(urlPrev.empty() || descPrev.empty())) {
25 <a class="prevnext-prev" href="<% urlPrev %>" title="<% sitecing::html_escape(titlePrev.empty()?descPrev:titlePrev) %>"><% sitecing::html_escape(descPrev) %></a> 25 <a class="prevnext-prev" href="<% urlPrev %>" title="<% sitecing::html_escape(titlePrev.empty()?descPrev:titlePrev) %>">&#9668;&nbsp;&nbsp;<% sitecing::html_escape(descPrev) %></a>
26% } 26% }
27% if(!(urlNext.empty() || descNext.empty())) { 27% if(!(urlNext.empty() || descNext.empty())) {
28 <a class="prevnext-next" href="<% urlNext %>" title="<% sitecing::html_escape(titleNext.empty()?descNext:titleNext) %>"><% sitecing::html_escape(descNext) %></a> 28 <a class="prevnext-next" href="<% urlNext %>" title="<% sitecing::html_escape(titleNext.empty()?descNext:titleNext) %>"><% sitecing::html_escape(descNext) %>&nbsp;&nbsp;&#9658;</a>
29% } 29% }
30 </div> 30 </div>
31</%method> 31</%method>
32<%method void body() %> 32<%method void body() %>
33 <div id="content"> 33 <div id="content">
34 <%code> 34 <%code>
diff --git a/htdocs/ancestry/sources.chtml b/htdocs/ancestry/sources.chtml
index 35ced64..1d9fcc9 100644
--- a/htdocs/ancestry/sources.chtml
+++ b/htdocs/ancestry/sources.chtml
@@ -57,12 +57,16 @@
57 { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" }, 57 { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" },
58 { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" }, 58 { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" },
59 { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" }, 59 { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" },
60 { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" }, 60 { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" },
61 { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" }, 61 { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" },
62 { 0,0,0 }, 62 { 0,0,0 },
63 { "htdocs/quickref", 0, "reference documentation" },
64 { "htdocs/quickref", "index.chtml", "the overview" },
65 { "htdocs/quickref", "metasyntax.chtml", "component meta syntax quick reference" },
66 { 0,0,0 },
63 { 0,0,0 }, 67 { 0,0,0 },
64 { "htdocs/handlers", 0, "exception handlers" }, 68 { "htdocs/handlers", 0, "exception handlers" },
65 { "htdocs/handlers", ".htaccess", "apache access-control file" }, 69 { "htdocs/handlers", ".htaccess", "apache access-control file" },
66 { "htdocs/handlers", "exception_dev", "development mode exception handler" }, 70 { "htdocs/handlers", "exception_dev", "development mode exception handler" },
67 { "htdocs/handlers", "exception_prod", "production mode exception handler" }, 71 { "htdocs/handlers", "exception_prod", "production mode exception handler" },
68 { 0,0,0 }, 72 { 0,0,0 },
diff --git a/htdocs/examples/calendar.chtml b/htdocs/examples/calendar.chtml
index eea20cb..85aa7ba 100644
--- a/htdocs/examples/calendar.chtml
+++ b/htdocs/examples/calendar.chtml
@@ -1,12 +1,13 @@
1<%impl> 1<%impl>
2 /* vim:set ft=sitecing: */ 2 /* vim:set ft=sitecing: */
3 #include <time.h> 3 #include <time.h>
4 #include <konforka/exception.h> 4 #include <konforka/exception.h>
5</%impl> 5</%impl>
6<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 6<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
7% __SCIF->flush();
7<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 8<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
8 <head> 9 <head>
9 <title>really simple page</title> 10 <title>really simple page</title>
10 <style type="text/css"> 11 <style type="text/css">
11 table.calendar { 12 table.calendar {
12 font-family: monospace; 13 font-family: monospace;
diff --git a/htdocs/index.chtml b/htdocs/index.chtml
index e8cedda..20d34c2 100644
--- a/htdocs/index.chtml
+++ b/htdocs/index.chtml
@@ -30,15 +30,17 @@
30 </p> 30 </p>
31 <p class="note"> 31 <p class="note">
32 Note, that the configuration is tailored for apache 2.x. It is no problem to 32 Note, that the configuration is tailored for apache 2.x. It is no problem to
33 get it working with apache 1.3.x, although I haven't tried and so I am not 33 get it working with apache 1.3.x, although I haven't tried and so I am not
34 sure if it will run out of the box (your patches are <a 34 sure if it will run out of the box (your patches are <a
35 href="mailto:sitecing-patches@klever.net">welcome</a>). Also note that you 35 href="mailto:sitecing-patches@klever.net">welcome</a>). Also note that you
36 will need <a href="http://fastcgi.com/">mod_fastcgi</a> apache module, which 36 may need <a href="http://fastcgi.com/">mod_fastcgi</a> apache module,
37 is the only CGI-interface supported by the <em>site-C-ing</em> engine at the 37 although now that fastcgi is not the only supported interface you may get the
38 moment. 38 thing running with 'plain' CGI with a bit of tweaking. Again, if you got it
39 working without breaking the fastcgi part your patches are <a
40 href="mailto:sitecing-patches@klever.net">welcome</a>.
39 </p> 41 </p>
40 <p> 42 <p>
41 Once you get it all done you will want to restart your apache and start the 43 Once you get it all done you will want to restart your apache and start the
42 <em>site-C-ing</em> fastcgi server by issuing the <code>make restart</code> 44 <em>site-C-ing</em> fastcgi server by issuing the <code>make restart</code>
43 command. 45 command.
44 </p> 46 </p>
diff --git a/htdocs/quickref/index.chtml b/htdocs/quickref/index.chtml
index 20ef217..d139190 100644
--- a/htdocs/quickref/index.chtml
+++ b/htdocs/quickref/index.chtml
@@ -8,9 +8,10 @@
8 return "quick reference"; 8 return "quick reference";
9</%codemethod> 9</%codemethod>
10<%method void content() %> 10<%method void content() %>
11 <h1>site-C-ing quick reference</h1> 11 <h1>site-C-ing quick reference</h1>
12 <p> 12 <p>
13 I am hoping to put together some quick reference documentation here. For now, 13 I am hoping to put together some quick reference documentation here. For now,
14 I am adding the component meta-syntax quick reference. 14 I am adding the <a href="/quickref/metasyntax">component meta-syntax quick
15 reference</a>.
15 </p> 16 </p>
16</%method> 17</%method>
diff --git a/htdocs/quickref/metasyntax.chtml b/htdocs/quickref/metasyntax.chtml
index a63f596..4efc37c 100644
--- a/htdocs/quickref/metasyntax.chtml
+++ b/htdocs/quickref/metasyntax.chtml
@@ -40,18 +40,20 @@
40 </dt> 40 </dt>
41 <dd> 41 <dd>
42 <p> 42 <p>
43 Break out into the code mode for just one line. 43 Break out into the code mode for just one line.
44 </p> 44 </p>
45 <blockquote class="qr_sample"> 45 <blockquote class="qr_sample">
46 <div>
46 &nbsp;&lt;body&gt;<br/> 47 &nbsp;&lt;body&gt;<br/>
48 &nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
47 <em><a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/></em> 49 <em><a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/></em>
48 &nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
49 &nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/> 50 &nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/>
50 <em><a href="#qr__line" title="% description">%</a> }<br/></em> 51 <em><a href="#qr__line" title="% description">%</a> }<br/></em>
51 &nbsp;&lt;/body&gt; 52 &nbsp;&lt;/body&gt;
53 </div>
52 </blockquote> 54 </blockquote>
53 </dd> 55 </dd>
54 56
55% /* <% %> */ 57% /* <% %> */
56 <dt> 58 <dt>
57 <a id="qr__inline" name="qr__inline" title="output expression"> 59 <a id="qr__inline" name="qr__inline" title="output expression">
@@ -60,40 +62,45 @@
60 </dt> 62 </dt>
61 <dd> 63 <dd>
62 <p> 64 <p>
63 &lt;&lt; <kbd>expression</kbd> into output stream (think c++). 65 &lt;&lt; <kbd>expression</kbd> into output stream (think c++).
64 </p> 66 </p>
65 <blockquote class="qr_sample"> 67 <blockquote class="qr_sample">
68 <div>
69 &nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
66 <a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/> 70 <a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/>
67 &nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
68 <em>&nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/></em> 71 <em>&nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/></em>
69 <a href="#qr__line" title="% description">%</a> } 72 <a href="#qr__line" title="% description">%</a> }
73 </div>
70 </blockquote> 74 </blockquote>
71 </dd> 75 </dd>
72 76
73% /* %code */ 77% /* %code */
74 <dt> 78 <dt>
75 <a id="qr__code" name="qr__code" title="switching to code mode"> 79 <a id="qr__code" name="qr__code" title="switching to code mode">
76 <code> 80 <code>
77 &lt;%code&gt; <kbd>...</kbd> &lt;/%code&gt; 81 &lt;%code&gt; <kbd>...</kbd> &lt;/%code&gt;
78 </code> 82 </code>
79 </a> 83 </a>
80 </dt> 84 </dt>
81 <dd> 85 <dd>
86 <p>
82 Escape from the output mode to code mode. Opposite to <code><a href="#qr__output" title="&lt;%output&gt; description">&lt;%output&gt;</a></code>. Roughly the same as <code><a href="#qr__output" title="&lt;%output&gt; description">&lt;/%output&gt;</a> <kbd>...</kbd> <a href="#qr__output" title="&lt;%output&gt; description">&lt;%output&gt;</a></code> (note the reverse order), but more self-explanatory and applies to more cases. 87 Escape from the output mode to code mode. Opposite to <code><a href="#qr__output" title="&lt;%output&gt; description">&lt;%output&gt;</a></code>. Roughly the same as <code><a href="#qr__output" title="&lt;%output&gt; description">&lt;/%output&gt;</a> <kbd>...</kbd> <a href="#qr__output" title="&lt;%output&gt; description">&lt;%output&gt;</a></code> (note the reverse order), but more self-explanatory and applies to more cases.
83 </p> 88 </p>
84 <blockquote class="qr_sample"> 89 <blockquote class="qr_sample">
90 <div>
85 &lt;body&gt;<br/> 91 &lt;body&gt;<br/>
86 <em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;%code&gt;</a><br/></em> 92 <em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;%code&gt;</a><br/></em>
87 &nbsp;&nbsp;for(int t=0;t&lt;10;t++) {<br/> 93 &nbsp;&nbsp;for(int t=0;t&lt;10;t++) {<br/>
88 &nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;%output&gt;</a><br/> 94 &nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;%output&gt;</a><br/>
89 &nbsp;&nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/> 95 &nbsp;&nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
90 &nbsp;&nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/> 96 &nbsp;&nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/>
91 &nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;/%output&gt;</a><br/> 97 &nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;/%output&gt;</a><br/>
92 <em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;/%code&gt;</a><br/></em> 98 <em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;/%code&gt;</a><br/></em>
93 &lt;/body&gt; 99 &lt;/body&gt;
100 </div>
94 </blockquote> 101 </blockquote>
95 </dd> 102 </dd>
96 103
97% /* %codemethod */ 104% /* %codemethod */
98 <dt> 105 <dt>
99 <a id="qr__codemethod" name="qr__codemethod" title="member function definition"> 106 <a id="qr__codemethod" name="qr__codemethod" title="member function definition">
@@ -106,16 +113,18 @@
106 </dt> 113 </dt>
107 <dd> 114 <dd>
108 <p> 115 <p>
109 Define the member function. Essentially equivalent to <code><a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">&lt;%method</a> <kbd>...</kbd> <a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">%&gt;</a><a href="#qr__code" title="&lt;%code&gt; description" class="internal">&lt;%code&gt;</a> <kbd>...</kbd> <a href="#qr__code" title="&lt;%code&gt; description" class="internal">&lt;/%code&gt;</a><a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">&lt;/%method&gt;</a></code>. 116 Define the member function. Essentially equivalent to <code><a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">&lt;%method</a> <kbd>...</kbd> <a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">%&gt;</a><a href="#qr__code" title="&lt;%code&gt; description" class="internal">&lt;%code&gt;</a> <kbd>...</kbd> <a href="#qr__code" title="&lt;%code&gt; description" class="internal">&lt;/%code&gt;</a><a href="#qr__method" title="&lt;%method ... %&gt; description" class="internal">&lt;/%method&gt;</a></code>.
110 </p> 117 </p>
111 <blockquote class="qr_sample"> 118 <blockquote class="qr_sample">
119 <div>
112 <em><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;%codemethod</a> std::string ua() <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">%&gt;</a><br/> 120 <em><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;%codemethod</a> std::string ua() <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">%&gt;</a><br/>
113 &nbsp;return __CGI-&gt;get_meta("USER_AGENT");<br/> 121 &nbsp;return __CGI-&gt;get_meta("USER_AGENT");<br/>
114 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;/%codemethod&gt;</a><br/></em> 122 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;/%codemethod&gt;</a><br/></em>
115 The user agent is: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> ua() <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/> 123 The user agent is: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> ua() <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/>
124 </div>
116 </blockquote> 125 </blockquote>
117 </dd> 126 </dd>
118 127
119% /* %constructor */ 128% /* %constructor */
120 <dt> 129 <dt>
121 <a id="qr__constructor" name="qr__constructor" title="constructor code"> 130 <a id="qr__constructor" name="qr__constructor" title="constructor code">
@@ -128,16 +137,18 @@
128 </dt> 137 </dt>
129 <dd> 138 <dd>
130 <p> 139 <p>
131 Provide the code for constructor. 140 Provide the code for constructor.
132 </p> 141 </p>
133 <blockquote class="qr_sample"> 142 <blockquote class="qr_sample">
143 <div>
134 <a href="#qr___var" title="%%var description">%%var</a> bool is_msie;<br/> 144 <a href="#qr___var" title="%%var description">%%var</a> bool is_msie;<br/>
135 <em><a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;%constructor&gt;</a><br/> 145 <em><a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;%constructor&gt;</a><br/>
136 &nbsp;is_msie = (__CGI-&gt;get_meta("USER_AGENT").find("MSIE")!=string::npos);<br/> 146 &nbsp;is_msie = (__CGI-&gt;get_meta("USER_AGENT").find("MSIE")!=string::npos);<br/>
137 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;/%constructor&gt;</a><br/></em> 147 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;/%constructor&gt;</a><br/></em>
148 </div>
138 </blockquote> 149 </blockquote>
139 </dd> 150 </dd>
140 151
141% /* %decl / %%decl */ 152% /* %decl / %%decl */
142 <dt> 153 <dt>
143 <a id="qr___decl" name="qr___decl" title="verbatim declaration"> 154 <a id="qr___decl" name="qr___decl" title="verbatim declaration">
@@ -156,20 +167,22 @@
156 <dd> 167 <dd>
157 <p> 168 <p>
158 Put the line(s) of code into the resulting <em>.h</em> file before the 169 Put the line(s) of code into the resulting <em>.h</em> file before the
159 class declaration. 170 class declaration.
160 </p> 171 </p>
161 <blockquote class="qr_sample"> 172 <blockquote class="qr_sample">
173 <div>
162 <em><a href="#qr___decl" title="%%decl description">%%decl</a> #include &lt;string&gt;<br/></em> 174 <em><a href="#qr___decl" title="%%decl description">%%decl</a> #include &lt;string&gt;<br/></em>
163 <a href="#qr___var" title="%%var description">%%var</a> std::string str = "default"<br/> 175 <a href="#qr___var" title="%%var description">%%var</a> std::string str = "default"<br/>
164 <em><a href="#qr__decl" title="&lt;%decl&gt; description">&lt;%decl&gt;</a><br/> 176 <em><a href="#qr__decl" title="&lt;%decl&gt; description">&lt;%decl&gt;</a><br/>
165 &nbsp;typedef int integer_t;<br/> 177 &nbsp;typedef int integer_t;<br/>
166 <a href="#qr__decl" title="&lt;%decl&gt; description">&lt;/%decl&gt;</a><br/></em> 178 <a href="#qr__decl" title="&lt;%decl&gt; description">&lt;/%decl&gt;</a><br/></em>
167 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;%method</a> void do_nothing(integer_t input) <a href="#qr__method" title="&lt;%method ... %&gt; description">%&gt;</a><br/> 179 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;%method</a> void do_nothing(integer_t input) <a href="#qr__method" title="&lt;%method ... %&gt; description">%&gt;</a><br/>
168 &nbsp;nothing is done<br/> 180 &nbsp;nothing is done<br/>
169 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a> 181 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a>
182 </div>
170 </blockquote> 183 </blockquote>
171 </dd> 184 </dd>
172 185
173% /* %%derive */ 186% /* %%derive */
174 <dt> 187 <dt>
175 <a id="qr___derive" name="qr___derive" title="base class(es) specification"> 188 <a id="qr___derive" name="qr___derive" title="base class(es) specification">
@@ -178,14 +191,16 @@
178 </dt> 191 </dt>
179 <dd> 192 <dd>
180 <p> 193 <p>
181 Inherit what is there to be inherited from the base component specified. 194 Inherit what is there to be inherited from the base component specified.
182 </p> 195 </p>
183 <blockquote class="qr_sample"> 196 <blockquote class="qr_sample">
197 <div>
184 <em><a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/></em> 198 <em><a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/></em>
185 <a href="#qr__line" title="% description">%</a> pagelayout::member_function(); 199 <a href="#qr__line" title="% description">%</a> pagelayout::member_function();
200 </div>
186 </blockquote> 201 </blockquote>
187 </dd> 202 </dd>
188 203
189% /* %destructor */ 204% /* %destructor */
190 <dt> 205 <dt>
191 <a id="qr__destructor" name="qr__destructor" title="destructor code"> 206 <a id="qr__destructor" name="qr__destructor" title="destructor code">
@@ -198,19 +213,21 @@
198 </dt> 213 </dt>
199 <dd> 214 <dd>
200 <p> 215 <p>
201 Provide the code for destructor. 216 Provide the code for destructor.
202 </p> 217 </p>
203 <blockquote class="qr_sample"> 218 <blockquote class="qr_sample">
219 <div>
204 <a href="#qr___var" title="%%var description">%%var</a> type_t *tmp = 0;<br/> 220 <a href="#qr___var" title="%%var description">%%var</a> type_t *tmp = 0;<br/>
205 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;%constructor&gt;</a><br/> 221 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;%constructor&gt;</a><br/>
206 &nbsp;tmp = new type_t(type_t::option_1);<br/> 222 &nbsp;tmp = new type_t(type_t::option_1);<br/>
207 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;/%constructor&gt;</a><br/> 223 <a href="#qr__constructor" title="&lt;%constructor&gt; description">&lt;/%constructor&gt;</a><br/>
208 <em><a href="#qr__destructor" title="&lt;%destructor&gt; description">&lt;%destructor&gt;</a><br/> 224 <em><a href="#qr__destructor" title="&lt;%destructor&gt; description">&lt;%destructor&gt;</a><br/>
209 &nbsp;delete tmp;<br/> 225 &nbsp;delete tmp;<br/>
210 <a href="#qr__destructor" title="&lt;%destructor&gt; description">&lt;/%destructor&gt;</a><br/></em> 226 <a href="#qr__destructor" title="&lt;%destructor&gt; description">&lt;/%destructor&gt;</a><br/></em>
227 </div>
211 </blockquote> 228 </blockquote>
212 </dd> 229 </dd>
213 230
214% /* %impl / %%impl */ 231% /* %impl / %%impl */
215 <dt> 232 <dt>
216 <a id="qr___impl" name="qr__impl" title="verbatim definition"> 233 <a id="qr___impl" name="qr__impl" title="verbatim definition">
@@ -229,13 +246,14 @@
229 <dd> 246 <dd>
230 <p> 247 <p>
231 Put the line(s) of code into the resulting <em>.cc</em> implementation file 248 Put the line(s) of code into the resulting <em>.cc</em> implementation file
232 before any members definitions. 249 before any members definitions.
233 </p> 250 </p>
234 <blockquote class="qr_sample"> 251 <blockquote class="qr_sample">
235 <em><a href"#qr___impl" title="%%impl description">%%impl</a> #include &lt;string.h&gt;<br/></em> 252 <div>
253 <em><a href="#qr___impl" title="%%impl description">%%impl</a> #include &lt;string.h&gt;<br/></em>
236 <a href="#qr__method" title="&lt;%method ... %gt; description">&lt;%method</a> void output_if_contains(const char *haystack,const char *needle) <a href="#qr__method" title="&lt;%method ... %gt; description">%&gt;</a><br/> 254 <a href="#qr__method" title="&lt;%method ... %gt; description">&lt;%method</a> void output_if_contains(const char *haystack,const char *needle) <a href="#qr__method" title="&lt;%method ... %gt; description">%&gt;</a><br/>
237 <a href="#qr__line" title="% description">%</a> if(strstr(haystack,needle)) {<br/> 255 <a href="#qr__line" title="% description">%</a> if(strstr(haystack,needle)) {<br/>
238 &nbsp;&nbsp;&nbsp;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> haystack <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/> 256 &nbsp;&nbsp;&nbsp;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> haystack <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/>
239 <a href="#qr__line" title="% description">%</a> }<br/> 257 <a href="#qr__line" title="% description">%</a> }<br/>
240 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a><br/> 258 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a><br/>
241 <em><a href="#qr__impl" title="&lt;%impl&gt; description">&lt;%impl&gt;</a><br/> 259 <em><a href="#qr__impl" title="&lt;%impl&gt; description">&lt;%impl&gt;</a><br/>
@@ -248,12 +266,13 @@
248 &nbsp;<a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a><br/> 266 &nbsp;<a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a><br/>
249 &nbsp;&nbsp;if(toknum&lt;0 || toknum&gt;=(sizeof(tokens)/sizeof(*tokens)))<br/> 267 &nbsp;&nbsp;if(toknum&lt;0 || toknum&gt;=(sizeof(tokens)/sizeof(*tokens)))<br/>
250 &nbsp;&nbsp;&nbsp;throw konforka::exception(CODEPOINT,"out of bounds");<br/> 268 &nbsp;&nbsp;&nbsp;throw konforka::exception(CODEPOINT,"out of bounds");<br/>
251 &nbsp;<a href="#qr__code" title="&lt;%code&gt; description">&lt;/%code&gt;</a><br/> 269 &nbsp;<a href="#qr__code" title="&lt;%code&gt; description">&lt;/%code&gt;</a><br/>
252 &nbsp;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> tokens[toknum] <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/> 270 &nbsp;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> tokens[toknum] <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a><br/>
253 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a><br/> 271 <a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;/%method&gt;</a><br/>
272 </div>
254 </blockquote> 273 </blockquote>
255 </dd> 274 </dd>
256 275
257% /* %method */ 276% /* %method */
258 <dt> 277 <dt>
259 <a id="qr__method" name="qr__method" title="member function definition"> 278 <a id="qr__method" name="qr__method" title="member function definition">
@@ -266,16 +285,18 @@
266 </dt> 285 </dt>
267 <dd> 286 <dd>
268 <p> 287 <p>
269 Define the member function. Essentially equivalent to <code><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">&lt;%codemethod</a> <kbd>...</kbd> <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">%&gt;</a><a href="#qr__output" title="&lt;%output&gt; description" class="internal">&lt;%output&gt;</a> <kbd>...</kbd> <a href="#qr__output" title="&lt;%output&gt; description" class="internal">&lt;/%output&gt;</a><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">&lt;/%codemethod&gt;</a></code>. 288 Define the member function. Essentially equivalent to <code><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">&lt;%codemethod</a> <kbd>...</kbd> <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">%&gt;</a><a href="#qr__output" title="&lt;%output&gt; description" class="internal">&lt;%output&gt;</a> <kbd>...</kbd> <a href="#qr__output" title="&lt;%output&gt; description" class="internal">&lt;/%output&gt;</a><a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description" class="internal">&lt;/%codemethod&gt;</a></code>.
270 </p> 289 </p>
271 <blockquote class="qr_sample"> 290 <blockquote class="qr_sample">
291 <div>
272 <em><a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;%method</a> void emphasized(const char *t) <a href="#qr__method" title="&lt;%method ... %&gt; description">%&gt;</a><br/> 292 <em><a href="#qr__method" title="&lt;%method ... %&gt; description">&lt;%method</a> void emphasized(const char *t) <a href="#qr__method" title="&lt;%method ... %&gt; description">%&gt;</a><br/>
273 &nbsp;&lt;em&gt;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;/em&gt;<br/> 293 &nbsp;&lt;em&gt;<a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;/em&gt;<br/>
274 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;/%method&gt;</a><br/></em> 294 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;/%method&gt;</a><br/></em>
275 <a href="#qr__line" title="% description">%</a> emphasized("emphasized text"); 295 <a href="#qr__line" title="% description">%</a> emphasized("emphasized text");
296 </div>
276 </blockquote> 297 </blockquote>
277 </dd> 298 </dd>
278 299
279% /* %output */ 300% /* %output */
280 <dt> 301 <dt>
281 <a id="qr__output" name="qr__output" title="switching to output mode"> 302 <a id="qr__output" name="qr__output" title="switching to output mode">
@@ -286,20 +307,22 @@
286 </dt> 307 </dt>
287 <dd> 308 <dd>
288 <p> 309 <p>
289 Escape from the code mode to output mode. Opposite to <code><a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a></code>. Roughly the same as <code><a href="#qr__code" title="&lt;%code&gt; description">&lt;/%code&gt;</a> <kbd>...</kbd> <a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a></code> (note the reverse order), but more self-explanatory and applies to more cases. 310 Escape from the code mode to output mode. Opposite to <code><a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a></code>. Roughly the same as <code><a href="#qr__code" title="&lt;%code&gt; description">&lt;/%code&gt;</a> <kbd>...</kbd> <a href="#qr__code" title="&lt;%code&gt; description">&lt;%code&gt;</a></code> (note the reverse order), but more self-explanatory and applies to more cases.
290 </p> 311 </p>
291 <blockquote class="qr_sample"> 312 <blockquote class="qr_sample">
313 <div>
292 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;%codemethod</a> void count() <a href="#qr__codemethod" title="&lt;%codemethod ... &gt; description">%&gt;</a><br/> 314 <a href="#qr__codemethod" title="&lt;%codemethod ... %&gt; description">&lt;%codemethod</a> void count() <a href="#qr__codemethod" title="&lt;%codemethod ... &gt; description">%&gt;</a><br/>
293 &nbsp;for(int t=0;t&lt;10;t++) {<br/> 315 &nbsp;for(int t=0;t&lt;10;t++) {<br/>
294 <em>&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;%output&gt;</a><br/> 316 <em>&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;%output&gt;</a><br/>
295 &nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/> 317 &nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
296 &nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/> 318 &nbsp;&nbsp;&nbsp;Just saying out loud: <a href="#qr__inline" title="&lt;% ... %&gt; description">&lt;%</a> t <a href="#qr__inline" title="&lt;% ... %&gt; description">%&gt;</a>&lt;br/&gt;<br/>
297 &nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;/%output&gt;</a><br/></em> 319 &nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;/%output&gt;</a><br/></em>
298 <a href="#qr__codemethod" title="&lt;/%codemethod ... %&gt; description">&lt;/%codemethod&gt;</a><br/> 320 <a href="#qr__codemethod" title="&lt;/%codemethod ... %&gt; description">&lt;/%codemethod&gt;</a><br/>
299 <a href="#qr__line" title="% description">%</a> count(); 321 <a href="#qr__line" title="% description">%</a> count();
322 </div>
300 </blockquote> 323 </blockquote>
301 </dd> 324 </dd>
302 325
303% /* %%pragma */ 326% /* %%pragma */
304 <dt> 327 <dt>
305 <a id="qr___pragma" name="qr___pragma" title="pragma"> 328 <a id="qr___pragma" name="qr___pragma" title="pragma">
@@ -312,33 +335,37 @@
312 <dd> 335 <dd>
313 <p>provide pseudo instructions to the preprocessor. At this time only pragma 336 <p>provide pseudo instructions to the preprocessor. At this time only pragma
314 named <code>main</code> is defined, which instructs preprocessor to discard 337 named <code>main</code> is defined, which instructs preprocessor to discard
315 the 'main' member that would be generated for the component and call the 338 the 'main' member that would be generated for the component and call the
316 <code>main</code> member of the named base class.</p> 339 <code>main</code> member of the named base class.</p>
317 <blockquote class="qr_sample"> 340 <blockquote class="qr_sample">
341 <div>
318 <a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/> 342 <a href="#qr___derive" title="%%derive description">%%derive</a> pagelayout = "/ancestry/page_layout.chtml";<br/>
319 <em><a href="#qr___pragma" title="%%pragma description">%%pragma</a> main=pagelayout</em> 343 <em><a href="#qr___pragma" title="%%pragma description">%%pragma</a> main=pagelayout</em>
344 </div>
320 </blockquote> 345 </blockquote>
321 </dd> 346 </dd>
322 347
323% /* %%var */ 348% /* %%var */
324 <dt> 349 <dt>
325 <a id="qr___var" name="qr___var" title="member variable declaration"> 350 <a id="qr___var" name="qr___var" title="member variable declaration">
326 <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd>;<br/> 351 <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd>;</code><br/>
327 <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd> = <kbd>initalizer</kbd>;<br/> 352 <code>%%var <kbd>type_t</kbd> <kbd>varname</kbd> = <kbd>initalizer</kbd>;</code><br/>
328 </a> 353 </a>
329 </dt> 354 </dt>
330 <dd> 355 <dd>
331 <p> 356 <p>
332 Define the member variable with optional default value (suitable for 357 Define the member variable with optional default value (suitable for
333 putting into the <code>: <kbd>varname</kbd>(<kbd>initializer</kbd>)</code> 358 putting into the <code>: <kbd>varname</kbd>(<kbd>initializer</kbd>)</code>
334 part of the c++ constructor. 359 part of the c++ constructor.
335 </p> 360 </p>
336 <blockquote class="qr_sample"> 361 <blockquote class="qr_sample">
362 <div>
337 <em><a href="#qr___var" title="%%var description">%%var</a> std::string strval = "default value";<br/> 363 <em><a href="#qr___var" title="%%var description">%%var</a> std::string strval = "default value";<br/>
338 <a href="#qr___var" title="%%var description">%%var</a> int usecount = 0;<br/> 364 <a href="#qr___var" title="%%var description">%%var</a> int usecount = 0;<br/>
339 <a href="#qr___var" title="%%var description">%%var</a> int whatnot;</em> 365 <a href="#qr___var" title="%%var description">%%var</a> int whatnot;</em>
366 </div>
340 </blockquote> 367 </blockquote>
341 </dd> 368 </dd>
342 369
343 </dl> 370 </dl>
344</%method> 371</%method>
diff --git a/htdocs/style.css b/htdocs/style.css
index 96e4c59..28aa8df 100644
--- a/htdocs/style.css
+++ b/htdocs/style.css
@@ -211,46 +211,52 @@ div.prevnext a.prevnext-next {
211 text-align: right; 211 text-align: right;
212} 212}
213div.prevnext a:hover { 213div.prevnext a:hover {
214 background: gray; 214 background: gray;
215 border: black 1px solid; 215 border: black 1px solid;
216 color: white; 216 color: white;
217 text-decoration: none;
217} 218}
218 219
219ul.quickref.toc { 220ul.quickref.toc {
220 margin: 1em 20%; 221 margin: 1em 20%;
221 font-size: 90%; 222 font-size: 90%;
222 border: solid 1px gray; 223 border: solid 1px gray;
223} 224}
224 225
225dl.quickref { 226dl.quickref {
226 margin: 1ex 1em; 227 margin: 1ex 1em;
228 overflow: hidden;
227} 229}
228dl.quickref dt { 230dl.quickref dt {
229 margin: 0.4ex; 231 margin: 0.4ex;
230 padding: 2px 0.5ex; 232 padding: 2px 0.5ex;
231 background: #e0e0e0; 233 background: #e0e0e0;
232 display: compact; 234 display: compact;
233} 235}
234dl.quickref dd { 236dl.quickref dd {
235 margin: 0px 0.4ex 0.4ex 10%; 237 margin: 0px 0.4ex 0.4ex 10%;
236 padding: 0px; 238 padding: 0px;
237 border: 1px solid grey; 239 border: 1px solid gray;
240 overflow: hidden;
238} 241}
239dl.quickref code kbd { 242dl.quickref code kbd {
240 font-style: italic; 243 font-style: italic;
241 color: #0000c0; 244 color: #0000c0;
242} 245}
243dl.quickref blockquote { 246dl.quickref blockquote {
244 background: #ffffc0; 247 background: #ffffc0;
245 padding: 4px; 248 padding: 4px;
246 border: dotted 1px gray; 249 border: dotted 1px gray;
247 font-family: monospace; 250 font-family: monospace;
251 font-size: 90%;
252 overflow: hidden;
248} 253}
249dl.quickref blockquote em { 254dl.quickref blockquote em {
250 display: block; 255 display: block;
251 font-family: inherit !important; 256 font-family: inherit !important;
252 font-size: inherit !important; 257 font-size: inherit !important;
253 font-weight: inherit !important; 258 font-weight: inherit !important;
254 font-style: inherit !important; 259 font-style: inherit !important;
255 background: #ffc0c0; 260 background: #ffc0c0;
261 overflow: hidden;
256} 262}