~aranha/aranha/mainline

« back to all changes in this revision

Viewing changes to contrib-modules/aranha.appbuilder/README

  • Committer: Digital-Scurf Patch Queue Manager
  • Date: 2008-10-23 11:17:08 UTC
  • mfrom: (96.2.5 aranha)
  • Revision ID: pqm@digital-scurf.org-20081023111708-sb40a6rfnatbrhxr
Support @@/ @base/ etc in the template system,
        and add a bunch of prefixes in appbuilder.

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
table of attributes, currently only "handler" is defined and must be
70
70
an appbuilder.handler instance.
71
71
 
 
72
Appbuilder registers various globals with the template expansion
 
73
context:
 
74
 
 
75
 * PATH_PREFIX_@ -> the root of the application.
 
76
 * PATH_PREFIX_base -> The base URI of the current handler
 
77
 * PATH_PREFIX_context -> The URI of the current handler, with any
 
78
   context
 
79
 * PATH_PREFIX_verb -> The URI of the current handler, with any verb
 
80
 * library -> a table of all the macros found when loading the macro
 
81
   tree.
 
82
 * taglibrary -> a table of all the specially defined tags found when
 
83
   loading the macro tree.
 
84
 * pathprefix -> a copy of PATH_PREFIX_@
 
85
 * request -> The request object in its entirety
 
86
 * param -> The CGI parameter table
 
87
 * session -> The contents of the session table if one is available
 
88
 
72
89
------[ An example AppBuilder application. ]-----------------------------------
73
90
 
74
91
The following set of handler definitions demonstrate how a bug