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"> 3 <head> 4 5 6 7 8 <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type" /> 9 10 11 12 13 14 15 <title>Creating Applications: Create a Directory</title> 16 <meta name="generator" content="amaya 8.1a, see http://www.w3.org/Amaya/" /> 17 18 19 20 21 <link href="styles.css" rel="stylesheet" type="text/css" /> 22 </head> 23 24 25 <body> 26 27 28 <h1>Creating Applications: Create a Directory</h1> 29 30 31 <p>The recommended directory structure of an XSLForms application is as 32 follows:</p> 33 34 <table style="text-align: left; width: 80%;" align="center" border="0" cellpadding="5" cellspacing="0" width="60%"> 35 36 <tbody> 37 38 <tr> 39 40 <td width="60%"></td> 41 42 <th style="text-align: left;" colspan="2" width="40%">Example Directory Structure<br /> 43 44 </th> 45 46 47 </tr> 48 49 <tr> 50 51 <th style="text-align: right;">A top-level directory corresponding to a Python package</th> 52 53 <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"><span style="font-weight: bold;">VerySimple</span><br /> 54 __init__.py</td> 55 56 <td align="undefined" valign="undefined"></td> 57 58 </tr> 59 60 61 <tr> 62 63 <th style="text-align: right;">A subdirectory containing non-code resources for the 64 application</th> 65 66 <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;" align="undefined" valign="undefined"><br /> 67 68 </td> 69 70 <td><span class="subdirectory"><span style="font-weight: bold;">Resources</span><br /> 71 72 ...</span></td> 73 74 </tr> 75 76 77 </tbody> 78 </table> 79 <p>For the above example, the directory structure would be created using UNIX-style commands as follows:</p> 80 81 82 <pre>mkdir VerySimple<br />mkdir VerySimple/Resources<br />touch VerySimple/__init__.py</pre> 83 84 85 <p>It is in the <code>Resources</code> subdirectory that we will save 86 our template files when <a href="design.html">designing</a> them as 87 part of the next activity in the application development <a href="overview.html">process</a>.</p> 88 89 90 </body> 91 </html>