Commit 02686a8b authored by Amos Latteier's avatar Amos Latteier

Fixed relative links in page templates documentation.

parent 7a389ac6
...@@ -27,6 +27,6 @@ define-macro: Define a macro ...@@ -27,6 +27,6 @@ define-macro: Define a macro
See Also See Also
"metal:use-macro":../metal-use-macro.stx "metal:use-macro":metal-use-macro.stx
"metal:define-slot":../metal-define-slot.stx "metal:define-slot":metal-define-slot.stx
...@@ -33,7 +33,7 @@ define-slot: Define a macro customization point ...@@ -33,7 +33,7 @@ define-slot: Define a macro customization point
See Also See Also
"metal:fill-slot":../metal-fill-slot.stx "metal:fill-slot":metal-fill-slot.stx
...@@ -35,4 +35,4 @@ fill-slot: Customize a macro ...@@ -35,4 +35,4 @@ fill-slot: Customize a macro
See Also See Also
"metal:define-slot":../metal-define-slot.stx "metal:define-slot":metal-define-slot.stx
...@@ -45,7 +45,7 @@ use-macro: Use a macro ...@@ -45,7 +45,7 @@ use-macro: Use a macro
See Also See Also
"metal:define-macro":../metal-define-macro.stx "metal:define-macro":metal-define-macro.stx
"metal:fill-slot":../metal-fill-slot.stx "metal:fill-slot":metal-fill-slot.stx
...@@ -2,8 +2,8 @@ METAL Overview ...@@ -2,8 +2,8 @@ METAL Overview
The *Macro Expansion Template Attribute Language* (METAL) standard The *Macro Expansion Template Attribute Language* (METAL) standard
is a facility for HTML/XML macro preprocessing. It can be used in is a facility for HTML/XML macro preprocessing. It can be used in
conjunction with or independently of "TAL":../tal.stx and conjunction with or independently of "TAL":tal.stx and
"TALES":../tales.stx. "TALES":tales.stx.
Macros provide a way to define a chunk of presentation in one Macros provide a way to define a chunk of presentation in one
template, and share it in others, so that changes to the macro are template, and share it in others, so that changes to the macro are
...@@ -30,33 +30,33 @@ METAL Overview ...@@ -30,33 +30,33 @@ METAL Overview
METAL defines a number of statements: METAL defines a number of statements:
* "metal:define-macro":../metal-define-macro.stx - Define a macro. * "metal:define-macro":metal-define-macro.stx - Define a macro.
* "metal:use-macro":../metal-use-macro.stx - Use a macro. * "metal:use-macro":metal-use-macro.stx - Use a macro.
* "metal:define-slot":../metal-define-slot.stx - Define a macro * "metal:define-slot":metal-define-slot.stx - Define a macro
customization point. customization point.
* "metal:fill-slot":../metal-fill-slot.stx - Customize a macro. * "metal:fill-slot":metal-fill-slot.stx - Customize a macro.
Although METAL does not define the syntax of expression Although METAL does not define the syntax of expression
non-terminals, leaving that up to the implementation, a canonical non-terminals, leaving that up to the implementation, a canonical
expression syntax for use in METAL arguments is described in expression syntax for use in METAL arguments is described in
"TALES Specification":../tales.stx. "TALES Specification":tales.stx.
See Also See Also
"TAL Overview":../tal.stx "TAL Overview":tal.stx
"TALES Overview":../tales.stx "TALES Overview":tales.stx
"metal:define-macro":../metal-define-macro.stx "metal:define-macro":metal-define-macro.stx
"metal:use-macro":../metal-use-macro.stx "metal:use-macro":metal-use-macro.stx
"metal:define-slot":../metal-define-slot.stx "metal:define-slot":metal-define-slot.stx
"metal:fill-slot":../metal-fill-slot.stx "metal:fill-slot":metal-fill-slot.stx
...@@ -22,7 +22,7 @@ content: Replace the content of an element ...@@ -22,7 +22,7 @@ content: Replace the content of an element
Inserting the user name:: Inserting the user name::
<p tal:content="user/name">Fred Farkas</p> <p tal:content="user/getUserName">Fred Farkas</p>
Inserting HTML/XML:: Inserting HTML/XML::
...@@ -31,4 +31,4 @@ content: Replace the content of an element ...@@ -31,4 +31,4 @@ content: Replace the content of an element
See Also See Also
"'tal:replace'":../tal-replace.stx "'tal:replace'":tal-replace.stx
\ No newline at end of file \ No newline at end of file
...@@ -67,7 +67,7 @@ repeat: Repeat an element ...@@ -67,7 +67,7 @@ repeat: Repeat an element
example, 'repeat/item/start'. In Python expressions, you use example, 'repeat/item/start'. In Python expressions, you use
normal dictionary notation to get the repeat variable, then normal dictionary notation to get the repeat variable, then
attribute access to get the information, for example, attribute access to get the information, for example,
'python:repeat['item'].start'. "python:repeat['item'].start".
Note that 'first' and 'last' are intended for use with sorted Note that 'first' and 'last' are intended for use with sorted
sequences. They try to divide the sequence into group of items sequences. They try to divide the sequence into group of items
......
...@@ -38,4 +38,4 @@ replace: Replace an element ...@@ -38,4 +38,4 @@ replace: Replace an element
See Also See Also
"'tal:content'":../tal-content.stx "'tal:content'":tal-content.stx
\ No newline at end of file \ No newline at end of file
...@@ -34,24 +34,24 @@ TAL Overview ...@@ -34,24 +34,24 @@ TAL Overview
These are the tal statements: These are the tal statements:
- "tal:attributes":../tal-attributes.stx - dynamically change - "tal:attributes":tal-attributes.stx - dynamically change
element attributes. element attributes.
- "tal:define":../tal-define.stx - define variables. - "tal:define":tal-define.stx - define variables.
- "tal:condition":../tal-condition.stx - test conditions. - "tal:condition":tal-condition.stx - test conditions.
- "tal:content":../tal-content.stx - replace the content of an - "tal:content":tal-content.stx - replace the content of an
element. element.
- "tal:omit-tag":../tal-omit-tag.stx - remove an element, leaving - "tal:omit-tag":tal-omit-tag.stx - remove an element, leaving
the content of the element. the content of the element.
- "tal:on-error":../tal-on-error.stx - handle errors. - "tal:on-error":tal-on-error.stx - handle errors.
- "tal:repeat":../tal-repeat.stx - repeat an element. - "tal:repeat":tal-repeat.stx - repeat an element.
- "tal:replace":../tal-replace.stx - replace the content of an - "tal:replace":tal-replace.stx - replace the content of an
element and remove the element leaving the content. element and remove the element leaving the content.
Expressions used in statements may return values of any type, Expressions used in statements may return values of any type,
...@@ -104,23 +104,23 @@ TAL Overview ...@@ -104,23 +104,23 @@ TAL Overview
See Also See Also
"TALES Overview":../tales.stx "TALES Overview":tales.stx
"METAL Overview":../metal.stx "METAL Overview":metal.stx
"tal:attributes":../tal-attributes.stx "tal:attributes":tal-attributes.stx
"tal:define":../tal-define.stx "tal:define":tal-define.stx
"tal:condition":../tal-condition.stx "tal:condition":tal-condition.stx
"tal:content":../tal-content.stx "tal:content":tal-content.stx
"tal:omit-tag":../tal-omit-tag.stx "tal:omit-tag":tal-omit-tag.stx
"tal:on-error":../tal-on-error.stx "tal:on-error":tal-on-error.stx
"tal:repeat":../tal-repeat.stx "tal:repeat":tal-repeat.stx
"tal:replace":../tal-replace.stx "tal:replace":tal-replace.stx
...@@ -51,7 +51,7 @@ TALES Path expressions ...@@ -51,7 +51,7 @@ TALES Path expressions
Since every path must start with a variable name, you need a set Since every path must start with a variable name, you need a set
of starting variables that you can use to find other objects and of starting variables that you can use to find other objects and
values. See the "TALES overview":../tales.stx for a list of values. See the "TALES overview":tales.stx for a list of
built-in variables. Since variable names are looked up first in built-in variables. Since variable names are looked up first in
locals, then in globals, then in this list, these names act just locals, then in globals, then in this list, these names act just
like built-ins in Python; They are always available, but they can like built-ins in Python; They are always available, but they can
......
...@@ -46,22 +46,22 @@ TALES Python expressions ...@@ -46,22 +46,22 @@ TALES Python expressions
In addition, these utility functions are available: 'DateTime', In addition, these utility functions are available: 'DateTime',
'test', and 'same_type'. See "DTML 'test', and 'same_type'. See "DTML
functions":../../../OFSP/Help/dtml-funcs.stx for more functions":../../OFSP/Help/dtml-funcs.stx for more
information on these functions. information on these functions.
Finally, these functions are available in Python expressions, Finally, these functions are available in Python expressions,
but not in Python-based scripts: but not in Python-based scripts:
'path(string)' -- Evaluate a TALES "path":../tales-path.stx 'path(string)' -- Evaluate a TALES "path":tales-path.stx
expression. expression.
'string(string)' -- Evaluate a TALES "string":../tales-string.stx 'string(string)' -- Evaluate a TALES "string":tales-string.stx
expression. expression.
'exists(string)' -- Evaluates a TALES "exists":../tales-exists.stx 'exists(string)' -- Evaluates a TALES "exists":tales-exists.stx
expression. expression.
'nocall(string)' -- Evaluates a TALES "nocall":../tales-nocall.stx 'nocall(string)' -- Evaluates a TALES "nocall":tales-nocall.stx
expression. expression.
Python Modules Python Modules
...@@ -84,19 +84,19 @@ TALES Python expressions ...@@ -84,19 +84,19 @@ TALES Python expressions
module":http://www.python.org/doc/current/lib/module-math.html. module":http://www.python.org/doc/current/lib/module-math.html.
'sequence' -- A module with a powerful sorting function. See 'sequence' -- A module with a powerful sorting function. See
"sequence":../../../OFSP/Help/sequence.py for more information. "sequence":../../OFSP/Help/sequence.py for more information.
'Products.PythonScripts.standard' -- Various HTML formatting 'Products.PythonScripts.standard' -- Various HTML formatting
functions available in DTML. See functions available in DTML. See
"Products.PythonScripts.standard":../../../OFSP/Help/standard.py "Products.PythonScripts.standard":../../PythonScripts/Help/standard.py
for more information. for more information.
'ZTUtils' -- Batch processing facilities similar to those 'ZTUtils' -- Batch processing facilities similar to those
offered by 'dtml-in'. See "ZTUtils":../../../OFSP/Help/ZTUtils.py offered by 'dtml-in'. See "ZTUtils":ZTUtils.py
for more information. for more information.
'AccessControl' -- Security and access checking facilities. See 'AccessControl' -- Security and access checking facilities. See
"AccessControl":../../../OFSP/Help/AccessControl.py for more "AccessControl":../../OFSP/Help/AccessControl.py for more
information. information.
Examples Examples
......
...@@ -15,7 +15,7 @@ TALES String expressions ...@@ -15,7 +15,7 @@ TALES String expressions
expression string is supplied the resulting string is *empty*. The expression string is supplied the resulting string is *empty*. The
string can contain variable substitutions of the form '$name' or string can contain variable substitutions of the form '$name' or
'${path}', where 'name' is a variable name, and 'path' is a '${path}', where 'name' is a variable name, and 'path' is a
"path expression":../tales-path.stx. "path expression":tales-path.stx.
The escaped string value of the path expression is inserted into The escaped string value of the path expression is inserted into
the string. To prevent a '$' from being interpreted this way, it the string. To prevent a '$' from being interpreted this way, it
must be escaped as '$$'. must be escaped as '$$'.
......
TALES Overview TALES Overview
The *Template Attribute Language Expression Syntax* (TALES) standard The *Template Attribute Language Expression Syntax* (TALES) standard
describes expressions that supply "TAL":../tal.stx and describes expressions that supply "TAL":tal.stx and
"METAL":../metal.stx with data. TALES is *one* possible expression "METAL":metal.stx with data. TALES is *one* possible expression
syntax for these languages, but they are not bound to this syntax for these languages, but they are not bound to this
definition. Similarly, TALES could be used in a context having definition. Similarly, TALES could be used in a context having
nothing to do with TAL or METAL. nothing to do with TAL or METAL.
...@@ -36,17 +36,17 @@ TALES Overview ...@@ -36,17 +36,17 @@ TALES Overview
These are the TALES expression types supported by Zope: These are the TALES expression types supported by Zope:
* "path":../tales-path.stx expressions - locate a value by its path. * "path":tales-path.stx expressions - locate a value by its path.
* "exists":../tales-exists.stx expressions - test whether a path is valid. * "exists":tales-exists.stx expressions - test whether a path is valid.
* "nocall":../tales-nocall.stx expressions - locate an object by its path. * "nocall":tales-nocall.stx expressions - locate an object by its path.
* "not":../tales-not.stx expressions - negate an expression * "not":tales-not.stx expressions - negate an expression
* "string":../tales-string.stx expressions - format a string * "string":tales-string.stx expressions - format a string
* "python":../tales-python.stx expressions - execute a Python * "python":tales-python.stx expressions - execute a Python
expression expression
Built-in Names Built-in Names
...@@ -97,19 +97,19 @@ TALES Overview ...@@ -97,19 +97,19 @@ TALES Overview
See Also See Also
"TAL Overview":../tal.stx "TAL Overview":tal.stx
"METAL Overview":../metal.stx "METAL Overview":metal.stx
"exists":../tales-exists.stx expressions "exists":tales-exists.stx expressions
"nocall":../tales-nocall.stx expressions "nocall":tales-nocall.stx expressions
"not":../tales-not.stx expressions "not":tales-not.stx expressions
"string":../tales-string.stx expressions "string":tales-string.stx expressions
"path":../tales-path.stx expressions "path":tales-path.stx expressions
"python":../tales-python.stx expressions "python":tales-python.stx expressions
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment