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