spyce
         
home     documentation     download     Spyce logo


Documentation - Modules

Prev: 3.7.2 - spyceUtil Up: 3 - Runtime Next: 3.8.1 - DB (implicit)

3.8. Modules

The Spyce language, as described above, is simple and small. Most functionality is provided at runtime through Spyce modules and Python modules.

The standard Spyce modules are documented here; some other modules are also distributed in the contrib/ directory.

Non-implicit modules are imported using the Spyce [[.import]] directive. Python modules are imported using the Python import keyword. Remember that modules need to have the same read permissions as regular files that you expect the web server to read.

Modules may be imported with a non-default name using the as attribute to the .import directive. This is discouraged for standard Spyce modules; the session module, for example, expects to find or otherwise load a module named cookie in the Spyce environment.

Once included, a Spyce module may be accessed anywhere in the Spyce code.


Prev: 3.7.2 - spyceUtil Up: 3 - Runtime Next: 3.8.1 - DB (implicit)

Sub-sections:


Spyce logo
Python Server Pages
version 2.1.3
Spyce Powered SourceForge Logo