1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"><head> 3 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 4 5 <title>Creating Applications: Create a Directory</title><meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 6 <link href="styles.css" rel="stylesheet" type="text/css" /></head> 7 <body> 8 <h1>Creating Applications: Create 9 a Directory</h1> 10 <p>The recommended directory 11 structure of an XSLForms application is as 12 follows:</p> 13 <table style="text-align: left; width: 80%;" align="center" border="0" cellpadding="5" cellspacing="0" width="60%"> 14 <tbody> 15 <tr> 16 <td width="60%"></td> 17 <th style="text-align: left;" colspan="2" width="40%">Example 18 Directory 19 Structure<br /> 20 </th> 21 </tr> 22 <tr> 23 <th style="text-align: right;">A 24 top-level directory corresponding to a Python package</th> 25 <td style="background-color: rgb(204, 204, 255); border-top-style: solid; border-left-style: solid; border-right-style: solid; border-right-width: 1px; border-left-width: 1px; border-top-width: 1px;" align="undefined" valign="undefined"><code><span style="font-weight: bold;">VerySimple</span><br /> 26 __init__.py</code></td> 27 <td></td> 28 </tr> 29 <tr> 30 <th style="text-align: right;">A subdirectory 31 containing non-code resources for the 32 application</th> 33 <td style="background-color: rgb(204, 204, 255); border-left-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-width: 1px; border-right-width: 1px; border-bottom-width: 1px;"><br /> 34 </td> 35 <td><span class="subdirectory"><code><span style="font-weight: bold;">Resources</span><br /> 36 ...</code></span></td> 37 </tr> 38 </tbody> 39 </table> 40 <p>For the above example, the 41 directory structure would be created using UNIX-style commands 42 as follows:</p> 43 <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> 44 <p>It is in the <code>Resources</code> 45 subdirectory that we will save 46 our template files. First, however, we must undertake some <a href="data.html">data definition</a> as the next activity in the application development <a href="overview.html">process</a>.</p> 47 </body></html>