cookbook: Added skeleton for script chapter of cookbook

This commit is contained in:
Elliot Smith 2010-08-26 11:07:54 +01:00
parent 27d9825abe
commit fef53e1b28
3 changed files with 47 additions and 0 deletions

View File

@ -13,6 +13,7 @@ XML_FILES = \
text.xml \
textures.xml \
layouts.xml \
script.xml \
$(NULL)
XSLTOPTS = \

View File

@ -45,6 +45,7 @@
<xi:include href="animations.xml" />
<xi:include href="text.xml" />
<xi:include href="layouts.xml" />
<xi:include href="script.xml" />
<appendix id="contributing">
<title>Contributing to this document</title>

45
doc/cookbook/script.xml Normal file
View File

@ -0,0 +1,45 @@
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<chapter id="script"
xmlns:xi="http://www.w3.org/2003/XInclude">
<title>Script</title>
<epigraph>
<attribution>who</attribution>
<para>what</para>
</epigraph>
<section id="script-introduction">
<title>Introduction</title>
<para>intro</para>
</section>
<section id="script-ui">
<title>Defining a user interface using <type>ClutterScript</type></title>
<section>
<title>Problem</title>
<para>User interfaces are hard to maintain when the code
for creating elements and the code for interacting with
them is mixed together.</para>
</section>
<section>
<title>Solution</title>
<para>Use <type>ClutterScript</type> to define the UI
declaratively.</para>
</section>
<section>
<title>Discussion</title>
<para>...</para>
</section>
</section>
</chapter>