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 / *.* / static.spi < prev    next >
Encoding:
Text File  |  2004-05-18  |  830 b   |  30 lines

  1. [[\
  2. install_location = '/usr/share/spyce'
  3. release='1'
  4. egprefix = request.get1('egprefix')
  5. if not egprefix: 
  6.   egprefix='examples/'
  7. ]]
  8.  
  9. [[ def includeCode(filename, egprefix=egprefix, run=1): { 
  10.   import os
  11. ]]
  12. [[.compact mode=off]]
  13. <table border=1 align=center>
  14. <tr><td align=left bgcolor="#cccccc">
  15.   <font face="arial, helvetica" size="-1"><b>[[=filename]]</b></font>
  16. </td></tr><tr><td>
  17.   <font face=courier>
  18.     <pre>[[=include.spycecode(filename)]]</pre>
  19.   </font>
  20. [[if run==1: {]]
  21.   </td></tr><tr><td align=right bgcolor="#cccccc">
  22.     <font face="arial, helvetica" size="-1">
  23.       <b><a href="[[=egprefix+os.path.split(filename)[1] ]]">Run this code</a>.</b>
  24.       <small><small><br>(requires Spyce-enabled web server)</small></small>
  25.     </font>
  26. [[ } ]]
  27. </td></tr></table>
  28. [[.compact]]
  29. [[ } ]]
  30.