Configuration fileWell, config file... Many parameters may need to be defined to assemble your site. Location of your source and target directories, which template to use for which file extension, definition of entities and macros and so on. Passing it all through a web form may be inappropriate (too many url arguments to store in bookmarks). So the decision was made to collect all the necessary parameters in an XML config file. Now when running Hopefully most of these parameters have good default values and don't need to be reassigned. This is the list of what really needs to be provided:
Here is our <site title="OSB Tools">
<delimiter> ^ </delimiter>
<template>base/template.html</template>
<source>www</source>
<target>/users/stas/sites/osbtools</target>
<sitemap id="osb" url="http://osbtools.googlepages.com">osb-sm.xml</sitemap>
<macro name="c" params="1">
<![CDATA[<code>$1</code>]]>
</macro>
</site>
It defines OSB Tools as site title, www as a source folder relative to After implementing all the techniques discussed above our complete development tree is as follows: /users/stas/tpl/osbtools/ | + config.xml | +-base/ | + template.html | +-www/ | _sections.xml | google.css | osb.css | flow1.png | menu-sample.png | osbtools-sitemap.xml | start.src | tutorial.src | reference.src | support.src + links.src /users/stas/sites/osbtools/ For a full list of parameters in config file see the Config file tags in Commands Reference Now is the time to meet entities and macros. |