~aranha/aranha/mainline

« back to all changes in this revision

Viewing changes to contrib-modules/aranha.template/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:
8
8
------[ Contents ]-------------------------------------------------------------
9
9
 
10
10
  * What is Aranha Template Language? (ATL)
 
11
  * Caveats and tweaks in ATL
11
12
  * What is the ATL expression syntax?
12
13
  * What are the ATL tree manipulation directives?
13
14
    * atl:vars
40
41
contain an atl:omit-tag="true". i.e. the tag itself will be omitted,
41
42
but its contents emitted.
42
43
 
 
44
------[ Caveats and tweaks in ATL ]--------------------------------------------
 
45
 
 
46
In ATL, there are a few caveats to consider. First, the XML parser in
 
47
use is quite strict. As such, your documents must be valid and
 
48
well-formed otherwise they will not parse. You may not use complex
 
49
entities (basically any other than < > " and &) inside
 
50
attribute values.
 
51
 
 
52
Attributes, when written out (I.E. after any expansion etc handled by
 
53
the special directives below) are checked against the pattern
 
54
"^@([^/]+)/" and if they match, the prefix is replaced by the value of
 
55
PATH_PREFIX_$1 from the expansion context.
 
56
 
43
57
------[ What is the ATL expression syntax? ]-----------------------------------
44
58
 
45
59
An ATL expression can be used in various of the atl: attributes to