333 lines
7.6 KiB
Plaintext
333 lines
7.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<h3>
|
|
Template 1.6
|
|
</h3>
|
|
<div class="toc">
|
|
<p>
|
|
<b>Table of contents</b>
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<a href="#template_1_6.templates">Templates</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.empty_templates">Empty Templates</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.nested_templates">Nested Templates</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.block_markup">Block Markup</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.static_scoping">Static Scoping</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.template_arguments">Template Arguments</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.block_and_phrase_templates">Block and phrase templates</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.template_body">Skipping the template body correctly</a>
|
|
</li>
|
|
<li>
|
|
<a href="#template_1_6.escaped_templates">Escaped templates</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="template_1_6.templates">
|
|
<h3>
|
|
Templates
|
|
</h3>
|
|
<div id="template_1_6.templates">
|
|
<p>
|
|
nullary_arg
|
|
</p>
|
|
<p>
|
|
foo baz
|
|
</p>
|
|
<p>
|
|
foo baz
|
|
</p>
|
|
<p>
|
|
This is a complete paragraph. kalamazoo kalamazoo kalamazoo kalamazoo kalamazoo
|
|
kalamazoo kalamazoo kalamazoo kalamazoo.... blah blah blah......
|
|
</p>
|
|
<p>
|
|
baz
|
|
</p>
|
|
<p>
|
|
This is a complete paragraph. madagascar madagascar madagascar madagascar
|
|
madagascar madagascar madagascar madagascar madagascar.... blah blah blah......
|
|
</p>
|
|
<p>
|
|
zoom peanut zoom
|
|
</p>
|
|
<p>
|
|
exactly xanadu
|
|
</p>
|
|
<p>
|
|
wx
|
|
</p>
|
|
<p>
|
|
wxyz wxyz trail
|
|
</p>
|
|
<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span>
|
|
<span class="special">{</span>
|
|
<span class="identifier">std</span><span class="special">::</span><span class="identifier">cout</span> <span class="special"><<</span> "Hello, World" <span class="special"><<</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">endl</span><span class="special">;</span>
|
|
<span class="special">}</span>
|
|
</pre>
|
|
<p>
|
|
x<sup>2</sup>
|
|
</p>
|
|
<p>
|
|
α<sup>2</sup>
|
|
</p>
|
|
<p>
|
|
x<sup>2</sup>
|
|
</p>
|
|
<p>
|
|
got a banana?
|
|
</p>
|
|
<p>
|
|
.0 00
|
|
</p>
|
|
<p>
|
|
[fool]
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.empty_templates">
|
|
<h3>
|
|
Empty Templates
|
|
</h3>
|
|
<div id="template_1_6.empty_templates">
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.nested_templates">
|
|
<h3>
|
|
Nested Templates
|
|
</h3>
|
|
<div id="template_1_6.nested_templates">
|
|
<p>
|
|
Pre
|
|
</p>
|
|
<p>
|
|
Start block template.
|
|
</p>
|
|
<p>
|
|
Start block template.
|
|
</p>
|
|
<p>
|
|
Hello!
|
|
</p>
|
|
<p>
|
|
End block template.
|
|
</p>
|
|
<p>
|
|
End block template.
|
|
</p>
|
|
<p>
|
|
Post
|
|
</p>
|
|
<p>
|
|
Pre
|
|
</p>
|
|
<p>
|
|
Start block template.
|
|
</p>
|
|
<p>
|
|
Start phrase template. Hello! End phrase template.
|
|
</p>
|
|
<p>
|
|
End block template.
|
|
</p>
|
|
<p>
|
|
Post
|
|
</p>
|
|
<p>
|
|
Pre
|
|
</p>
|
|
<p>
|
|
Start phrase template.
|
|
</p>
|
|
<p>
|
|
Start block template.
|
|
</p>
|
|
<p>
|
|
Hello!
|
|
</p>
|
|
<p>
|
|
End block template.
|
|
</p>
|
|
<p>
|
|
End phrase template.
|
|
</p>
|
|
<p>
|
|
Post
|
|
</p>
|
|
<p>
|
|
Pre Start phrase template. Start phrase template. Hello! End phrase template.
|
|
End phrase template. Post
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.block_markup">
|
|
<h3>
|
|
Block Markup
|
|
</h3>
|
|
<div id="template_1_6.block_markup">
|
|
<ul>
|
|
<li>
|
|
<div>
|
|
a
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div>
|
|
b
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<p>
|
|
</p>
|
|
<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> <span class="special">{}</span></pre>
|
|
<p>
|
|
Paragraphs 1
|
|
</p>
|
|
<p>
|
|
Paragraphs 2
|
|
</p>
|
|
<ul>
|
|
<li>
|
|
<div>
|
|
<ul>
|
|
<li>
|
|
<div>
|
|
a
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<div>
|
|
b
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</li>
|
|
<li>
|
|
<p>
|
|
</p>
|
|
</li>
|
|
<li>
|
|
<pre class="programlisting"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">()</span> <span class="special">{}</span></pre>
|
|
</li>
|
|
<li>
|
|
<div>
|
|
Paragraphs 1
|
|
</div>
|
|
<div>
|
|
Paragraphs 2
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.static_scoping">
|
|
<h3>
|
|
Static Scoping
|
|
</h3>
|
|
<div id="template_1_6.static_scoping">
|
|
<p>
|
|
static scoping
|
|
</p>
|
|
<p>
|
|
[a]
|
|
</p>
|
|
<p>
|
|
new
|
|
</p>
|
|
<p>
|
|
foo foo
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.template_arguments">
|
|
<h3>
|
|
Template Arguments
|
|
</h3>
|
|
<div id="template_1_6.template_arguments">
|
|
<p>
|
|
{1-2} {1-2} {1-2 3 4} {1 2-3 4} {1 2 3-4} {1..2-3} {1..2-3}
|
|
</p>
|
|
<p>
|
|
{ {1 2-3}-4} { {1 2-3}-4} { {1-2 3}-4}
|
|
</p>
|
|
<p>
|
|
{[1-2] 3} {[1-2] 3} {[1-2}
|
|
</p>
|
|
<p>
|
|
{1-2-3} {1-2-3}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.block_and_phrase_templates">
|
|
<h3>
|
|
Block and phrase templates
|
|
</h3>
|
|
<div id="template_1_6.block_and_phrase_templates">
|
|
<p>
|
|
Some <span class="bold"><strong>text</strong></span>
|
|
</p>
|
|
<p>
|
|
A <emphasis>paragraph</emphasis>.
|
|
</p>
|
|
<p>
|
|
Some *text* A <span class="emphasis"><em>paragraph</em></span>.
|
|
</p>
|
|
<p>
|
|
<h3>
|
|
Things
|
|
</h3>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.template_body">
|
|
<h3>
|
|
Skipping the template body correctly
|
|
</h3>
|
|
<div id="template_1_6.template_body">
|
|
<p>
|
|
<span class="emphasis"><em>Argument</em></span>
|
|
</p>
|
|
<ol>
|
|
<li>
|
|
<pre class="programlisting"><span class="identifier">code</span></pre>
|
|
</li>
|
|
</ol>
|
|
<ol>
|
|
<li>
|
|
<div>
|
|
<code><span class="identifier">code</span></code>
|
|
</div>
|
|
</li>
|
|
</ol>
|
|
</div>
|
|
</div>
|
|
<div id="template_1_6.escaped_templates">
|
|
<h3>
|
|
Escaped templates
|
|
</h3>
|
|
<div id="template_1_6.escaped_templates">
|
|
<p>
|
|
Not real boostbook More fake boostbook
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|