summaryrefslogtreecommitdiffabout
path: root/htdocs/quickref/metasyntax.chtml
Side-by-side diff
Diffstat (limited to 'htdocs/quickref/metasyntax.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r--htdocs/quickref/metasyntax.chtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/quickref/metasyntax.chtml b/htdocs/quickref/metasyntax.chtml
index 4efc37c..67186f9 100644
--- a/htdocs/quickref/metasyntax.chtml
+++ b/htdocs/quickref/metasyntax.chtml
@@ -1,98 +1,99 @@
-% html(); return; /* vim:set ft=sitecing: */
+% /* vim:set ft=sitecing: */
%%derive layout = "/ancestry/layout.chtml";
+%%pragma main=page
<%constructor>
PN_PREV("/quickref/","quick reference","quick reference");
PN_NEXT("/sources","sources","source browser");
</%constructor>
<%codemethod string title() %>
return "meta syntax quick reference";
</%codemethod>
<%method void content() %>
<h1>site-C-ing meta syntax quick reference</h1>
<h2>Table of Contents</h2>
<ul class="quickref toc">
<li><a href="#qr__line">% ...</a></li>
<li><a href="#qr__inline">&lt;% ... %&gt;</a></li>
<li><a href="#qr__code">&lt;%code&gt;</a></li>
<li><a href="#qr__codemethod">&lt;%codemethod ... &gt;</a></li>
<li><a href="#qr__constructor">&lt;%constructor&gt;</a></li>
<li><a href="#qr__decl">&lt;%decl&gt;</a></li>
<li><a href="#qr___decl">%%decl</a></li>
<li><a href="#qr___derive">%%derive</a></li>
<li><a href="#qr__destructor">&lt;%destructor&gt;</a></li>
<li><a href="#qr__impl">&lt;%impl&gt;</a></li>
<li><a href="#qr___impl">%%impl</a></li>
<li><a href="#qr__method">&lt;%method ... &gt;</a></li>
<li><a href="#qr__output">&lt;%output&gt;</a></li>
<li><a href="#qr___pragma">%%pragma</a></li>
<li><a href="#qr___var">%%var</a></li>
</ul>
<dl class="metasyntax quickref">
% /* % */
<dt>
<a id="qr__line" name="qr__line" title="line of code">
<code>% <kbd>line of code</kbd></code>
</a>
</dt>
<dd>
<p>
Break out into the code mode for just one line.
</p>
<blockquote class="qr_sample">
<div>
&nbsp;&lt;body&gt;<br/>
&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
<em><a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/></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><a href="#qr__line" title="% description">%</a> }<br/></em>
&nbsp;&lt;/body&gt;
</div>
</blockquote>
</dd>
% /* <% %> */
<dt>
<a id="qr__inline" name="qr__inline" title="output expression">
<code>&lt;% <kbd>expression</kbd> %&gt;</code>
</a>
</dt>
<dd>
<p>
&lt;&lt; <kbd>expression</kbd> into output stream (think c++).
</p>
<blockquote class="qr_sample">
<div>
&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
<a href="#qr__line" title="% description">%</a> for(int t=0;t&lt;10;t++) {<br/>
<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>
<a href="#qr__line" title="% description">%</a> }
</div>
</blockquote>
</dd>
% /* %code */
<dt>
<a id="qr__code" name="qr__code" title="switching to code mode">
<code>
&lt;%code&gt; <kbd>...</kbd> &lt;/%code&gt;
</code>
</a>
</dt>
<dd>
<p>
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.
</p>
<blockquote class="qr_sample">
<div>
&lt;body&gt;<br/>
<em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;%code&gt;</a><br/></em>
&nbsp;&nbsp;for(int t=0;t&lt;10;t++) {<br/>
&nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;%output&gt;</a><br/>
&nbsp;&nbsp;&nbsp;&nbsp;Here is the way we count.&lt;br/&gt;<br/>
&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/>
&nbsp;&nbsp;&nbsp;<a href="#qr__output" title="&lt;%output&gt; descrption">&lt;/%output&gt;</a><br/>
<em>&nbsp;<a href="#qr__code" title="&lt;%code&gt; descrption">&lt;/%code&gt;</a><br/></em>