home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / spyce / *.* / index.spy < prev    next >
Encoding:
Text File  |  2004-05-18  |  3.3 KB  |  107 lines

  1. [[.compact]]
  2. [[.import name=include]]
  3. [[include.spyce('inc/head.spi', {'pagename': 'Spyce Home', 'page': 'index.html'})]]
  4.  
  5. [[ def includeCode(filename): { ]]
  6. [[.compact mode=off]]
  7. <table style="border: 1px dashed #AAAAAA; width: 85%;"><tr><td style="font-face:courier;">
  8.   <pre>[[=include.spycecode(filename)]]</pre>
  9. </td></tr></table>
  10. [[.compact]]
  11. [[ } ]]
  12.  
  13. [[ import spyce ]]
  14. [[=spyce.__doc__]] <p>
  15.  
  16. <b>Updates</b><br>
  17.  
  18. The latest released version of Spyce is: <b>[[=spyce.__version__]]</b>
  19. (<a href="get.html">download</a>).
  20. <br>
  21. Please refer to the 
  22. <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/spyce/spyce/CHANGES?rev=HEAD">change log</a>
  23. or the 
  24. <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/spyce/">CVS repository</a>
  25. for details.
  26. <p>
  27.  
  28. <b>30-seconds sales pitch</b><br>
  29.  
  30. <ul>
  31.  
  32.   <li> Spyce is about embedding Python in HTML to create dynamic web pages. If
  33.   you like Python and you need to create web pages, you'll like Spyce. 
  34.   
  35.   <li> Spyce is intuitive. Here are a few "<font face=courier>Hello world!</font>"
  36.   examples written in Spyce: <p> [[includeCode('examples/hello.spy') ]] </p>
  37.   <p> [[includeCode('examples/ex2hello.spy') ]] </p> </li>
  38.  
  39.   <li> Spyce inherits the syntactic power of Python as well as its rich
  40.   standard library. All the standard Python modules can be used directly
  41.   within Spyce scripts. </li>
  42.  
  43.   <li> Spyce is modular and extensible. The standard modules include: request,
  44.   response, redirect, error, debug, include, cookie, session, template,
  45.   transform, compress, and others. You can write your own, if you like. </li>
  46.  
  47.   <li> Spyce supports active tags, i.e. tags that can execute code. They are
  48.   similar in spirit and functionality to JSP tags, but significantly easier to
  49.   write. Use the standard tags provided, or write your own custom active tag
  50.   libraries. </li>
  51.  
  52.   <li> Spyce scripts are first-order members of the Spyce language, a useful
  53.   feature not present in other server page languages. This allows Spyce
  54.   scripts to be turned into functions, useful for templating,
  55.   internationalization, polymorphic component rendering, etc. </li>
  56.  
  57.   <li> Spyce performs well. It can easily serve hundreds of requests per
  58.   second, and is comparable with JSP, PHP and other languages in its class.
  59.   </li>
  60.  
  61.   <li>And, we're out of time... You'll have to read the <a
  62.   href="doc.html">docs</a> for the rest.
  63.  
  64. </ul> <p>
  65.  
  66. <b>Site index</b><br>
  67.  
  68. <ul>
  69.  
  70.   <li><a href="index.html">Home</a>: 
  71.   Brief introduction (this page)</li>
  72.  
  73.   <li><a href="get.html">Download</a>: 
  74.   Get a copy of Spyce</li>
  75.   
  76.   <li><a href="doc.html">Documentation</a>:
  77.   User manual </li>
  78.  
  79.   <ul>
  80.  
  81.     <li><a href="doc-intro.html">introduction</a> and getting started </li>
  82.  
  83.     <li><a href="doc-lang.html">language</a> reference </li>
  84.  
  85.     <li>standard <a href="doc-mod.html">module</a> library </li>
  86.  
  87.     <li>standard <a href="doc-tag.html">tag</a> library </li>
  88.  
  89.     <li><a href="doc-conf.html">installation</a> instructions </li>
  90.  
  91.     <li><a href="eg.html">examples</a> </li>
  92.  
  93.   </ul>
  94.   
  95.   <li><a href="mail.html">Community</a>:
  96.   Mailing lists, help and publicity </li>
  97.  
  98.   <li><a href="mail.html">CVS</a>:
  99.   Open source </li>
  100.  
  101.   <li><a href="wishlist.html">Wishlist</a>:
  102.   Future work and ideas </li>
  103.  
  104. </ul>
  105.  
  106. [[include.spyce('inc/tail.spi') ]]
  107.