1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/docs/directory.html Sun Jul 17 01:07:10 2005 +0000
1.3 @@ -0,0 +1,46 @@
1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1.5 +<html xmlns="http://www.w3.org/1999/xhtml">
1.6 +<head>
1.7 + <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" />
1.8 + <title>Creating Applications: Create a Directory</title>
1.9 + <meta name="generator"
1.10 + content="amaya 8.1a, see http://www.w3.org/Amaya/" />
1.11 + <link href="styles.css" rel="stylesheet" type="text/css" />
1.12 +</head>
1.13 +<body>
1.14 +<h1>Creating Applications: Create a Directory</h1>
1.15 +<p>The recommended directory structure of an XSLForms application is as
1.16 +follows:</p>
1.17 +<ul>
1.18 + <li>A top-level directory corresponding to a Python package,
1.19 +containing...<br />
1.20 + <ul>
1.21 + <li>An <code>__init__.py</code> file and other source files,
1.22 +containing the <a href="Web-resource.html">Web resources</a> and other
1.23 +application logic.</li>
1.24 + <li>A subdirectory containing non-code resources for the
1.25 +application.</li>
1.26 + <li>Other package directories, if necessary.</li>
1.27 + </ul>
1.28 + </li>
1.29 +</ul>
1.30 +<p>For example, we might create a directory structure like this:</p>
1.31 +<ul>
1.32 + <li>A top-level directory called <code>Configurator</code>,
1.33 +containing...<br />
1.34 + <ul>
1.35 + <li>An <code>__init__.py</code> file containing the Web
1.36 +resources and other application logic.</li>
1.37 + <li>A subdirectory called <code>Resources</code> containing
1.38 +non-code resources.</li>
1.39 + </ul>
1.40 + </li>
1.41 +</ul>
1.42 +<p>In UNIX-style commands, this would be done as follows:</p>
1.43 +<pre>mkdir Configurator<br />mkdir Configurator/Resources<br />touch Configurator/__init__.py</pre>
1.44 +<p>It is in the <code>Resources</code> subdirectory that we will save
1.45 +our template files when <a href="design.html">designing</a> them as
1.46 +part of the next activity in the application development <a
1.47 + href="overview.html">process</a>.</p>
1.48 +</body>
1.49 +</html>