1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Nevow Examples</title>
</head>
<body>
<h1>Welcome to Nevow</h1>
<p>This page is here to order examples by complexity, the next step is
to write extensive comments for each example, to add new examples that
show each new corner of Nevow and to teach Nevow, feedback is greatly
appreciated.</p>
<p> In order to run each example you need Twisted and Nevow installed</p>
<p> Under <strong>windows</strong>: you need to run the Twisted Shell from Start-->Applications-->Twisted menu</p>
<p> Go to the Nevow examples directory (eg: C:\Nevow\examples or /usr/src/Nevow/examples) and
run each example with the following command</p>
<quote>
twistd -noy example-name.tac
</quote>
<p> Then, to see the application on your browser, just point it to: http://localhost:8080/</p>
<h1>Example Listing</h1>
<ol>
<li>
<p>Hello world in Nevow<p>
Stan Source: <a href="hellostan.tac">hellostan.tac</a>
xmlfile Source: <a href="hellohtml.tac">hellohtml.tac</a>
xmlfile Template: <a href="hellohtml.html">hellohtml.html</a>
</li>
<li><p>How to get Session and Request objects from the context</p>
Stan Source: <a href="simple.tac">simple.tac</a>
xmlfile Source: <a href="simplehtml.tac">simplehtml.tac</a>
xmlfile Template: <a href="simplehtml.html">simplehtml.html</a>
</li>
<li>
<p>Render tables in Nevow<p>
xmlfile Source: <a href="tablehtml.tac">tablehtml.tac</a>
xmlfile Template: <a href="tablehtml.html">tablehtml.html</a>
</li>
<li><p>How to use xmlfile directives</p>
Stan Source: <a href="disktemplates_stan.tac">disktemplates_stan.tac</a>
xmlfile Source: <a href="disktemplates.tac">disktemplates.tac</a>
xmlfile Template: <a href="disktemplates.html">disktemplates.html</a>
</li>
<li><p>How to handles page children with Nevow, and how to use the <nevow:attr> tag<p>
Stan Source: <a href="children.tac">children.tac</a>
xmlfile Source: <a href="childrenhtml.tac">childrenhtml.tac</a><br />
xmlfile Templates: <a href="childrenhtml_RootPage.html">childrenhtml_RootPage.html</a> /
<a href="childrenhtml_ChildPage.html">childrenhtml_ChildPage.html</a> /
<a href="childrenhtml_ChildOfChildPage.html">childrenhtml_ChildOfChildPage.html</a>
</li>
<li><p>Formless example</p>
Stan Source: <a href="formpost.tac">formpost.tac</a>
</li>
<li><p>Another formless example, but a little bit more complex</p>
Stan Source: <a href="formpost2.tac">formpost2.tac</a>
</li>
<li><p>Example of interacting with a database</p>
Stan Source: <a href="db.tac">db.tac</a>
</li>
<li><p>Various examples of how to integrate twisted.guard with Nevow for authentication</p>
Stan Source: <a href="guarded.tac">guarded.tac</a>
Stan Source: <a href="guarded2.tac">guarded2.tac</a>
Stan Source: <a href="guarded3.tac">guarded3.tac</a>
</li>
<li><p>Use Configurables to render a form with Formless in a customized template</p>
xmlfile Source: <a href="customform.tac">customform.tac</a>
</li>
<li><p>Dynamically build your forms</p>
Stan Source: <a href="formbuilder.tac">formbuilder.tac</a>
</li>
<li><p>Adapting an object to the IRenderer interface in order to make it render itself</p>
Stan Source: <a href="simple_irenderer.tac">simple_irenderer.tac</a>
</li>
<li><p>More complex example of adapting objects to IRenderer and to different interfaces</p>
Stan Source: <a href="irenderer.tac">irenderer.tac</a>
</li>
<li><p>Handling and building a Tree structure dynamically on yor site</p>
Stan Source: <a href="tree.tac">tree.tac</a>
</li>
<li><p>Complete application: handling users in a web site</p>
Stan Source: <a href="userdb.tac">userdb.tac</a>
</li>
<li><p>Complete application: Liveevil example in a live chat page</p>
Source: <a href="chatola">chatola</a>
</li>
<li><p>Complete application: Pastebin example with nevow</p>
Source: <a href="pastebin">pastebin</a>
</li>
</ol>
<h1>Tips and Tricks</h1>
<ul>
<li>
<p>Integration between Flash(TM) and Nevow</p>
Stan Source: <a href="canvas.tac">canvas.tac</a>
</li>
</ul>
<p>TODO: Lot of stuff<p>
</body>
</html>
|