[Zope-Checkins] CVS: Zope/lib/python/Products/PageTemplates/help - metal-define-macro.stx:1.6 metal-define-slot.stx:1.6 metal-fill-slot.stx:1.6 metal-use-macro.stx:1.6 metal.stx:1.5 tal-content.stx:1.5 tal-repeat.stx:1.8 tal-replace.stx:1.5 tal.stx:1.6 tales-path.stx:1.7 tales-python.stx:1.11 tales-string.stx:1.5 tales.stx:1.7
Amos Latteier
amos@digicool.com
Mon, 11 Feb 2002 18:31:12 -0500
Update of /cvs-repository/Zope/lib/python/Products/PageTemplates/help
In directory cvs.zope.org:/tmp/cvs-serv17710
Modified Files:
metal-define-macro.stx metal-define-slot.stx
metal-fill-slot.stx metal-use-macro.stx metal.stx
tal-content.stx tal-repeat.stx tal-replace.stx tal.stx
tales-path.stx tales-python.stx tales-string.stx tales.stx
Log Message:
Fixed relative links in page templates documentation.
=== Zope/lib/python/Products/PageTemplates/help/metal-define-macro.stx 1.5 => 1.6 ===
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
=== Zope/lib/python/Products/PageTemplates/help/metal-define-slot.stx 1.5 => 1.6 ===
See Also
- "metal:fill-slot":../metal-fill-slot.stx
+ "metal:fill-slot":metal-fill-slot.stx
=== Zope/lib/python/Products/PageTemplates/help/metal-fill-slot.stx 1.5 => 1.6 ===
See Also
- "metal:define-slot":../metal-define-slot.stx
+ "metal:define-slot":metal-define-slot.stx
=== Zope/lib/python/Products/PageTemplates/help/metal-use-macro.stx 1.5 => 1.6 ===
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
=== Zope/lib/python/Products/PageTemplates/help/metal.stx 1.4 => 1.5 ===
The *Macro Expansion Template Attribute Language* (METAL) standard
is a facility for HTML/XML macro preprocessing. It can be used in
- conjunction with or independently of "TAL":../tal.stx and
- "TALES":../tales.stx.
+ conjunction with or independently of "TAL":tal.stx and
+ "TALES":tales.stx.
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
@@ -30,33 +30,33 @@
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.
- * "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
non-terminals, leaving that up to the implementation, a canonical
expression syntax for use in METAL arguments is described in
- "TALES Specification":../tales.stx.
+ "TALES Specification":tales.stx.
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
=== Zope/lib/python/Products/PageTemplates/help/tal-content.stx 1.4 => 1.5 ===
Inserting the user name::
- <p tal:content="user/name">Fred Farkas</p>
+ <p tal:content="user/getUserName">Fred Farkas</p>
Inserting HTML/XML::
@@ -31,4 +31,4 @@
See Also
- "'tal:replace'":../tal-replace.stx
\ No newline at end of file
+ "'tal:replace'":tal-replace.stx
\ No newline at end of file
=== Zope/lib/python/Products/PageTemplates/help/tal-repeat.stx 1.7 => 1.8 ===
normal dictionary notation to get the repeat variable, then
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
sequences. They try to divide the sequence into group of items
=== Zope/lib/python/Products/PageTemplates/help/tal-replace.stx 1.4 => 1.5 ===
See Also
- "'tal:content'":../tal-content.stx
\ No newline at end of file
+ "'tal:content'":tal-content.stx
\ No newline at end of file
=== Zope/lib/python/Products/PageTemplates/help/tal.stx 1.5 => 1.6 ===
These are the tal statements:
- - "tal:attributes":../tal-attributes.stx - dynamically change
+ - "tal:attributes":tal-attributes.stx - dynamically change
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.
- - "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.
- - "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.
Expressions used in statements may return values of any type,
@@ -104,23 +104,23 @@
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
=== Zope/lib/python/Products/PageTemplates/help/tales-path.stx 1.6 => 1.7 ===
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
- 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
locals, then in globals, then in this list, these names act just
like built-ins in Python; They are always available, but they can
=== Zope/lib/python/Products/PageTemplates/help/tales-python.stx 1.10 => 1.11 ===
In addition, these utility functions are available: 'DateTime',
'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.
Finally, these functions are available in Python expressions,
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.
- 'string(string)' -- Evaluate a TALES "string":../tales-string.stx
+ 'string(string)' -- Evaluate a TALES "string":tales-string.stx
expression.
- 'exists(string)' -- Evaluates a TALES "exists":../tales-exists.stx
+ 'exists(string)' -- Evaluates a TALES "exists":tales-exists.stx
expression.
- 'nocall(string)' -- Evaluates a TALES "nocall":../tales-nocall.stx
+ 'nocall(string)' -- Evaluates a TALES "nocall":tales-nocall.stx
expression.
Python Modules
@@ -84,19 +84,19 @@
module":http://www.python.org/doc/current/lib/module-math.html.
'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
functions available in DTML. See
- "Products.PythonScripts.standard":../../../OFSP/Help/standard.py
+ "Products.PythonScripts.standard":../../PythonScripts/Help/standard.py
for more information.
'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.
'AccessControl' -- Security and access checking facilities. See
- "AccessControl":../../../OFSP/Help/AccessControl.py for more
+ "AccessControl":../../OFSP/Help/AccessControl.py for more
information.
Examples
=== Zope/lib/python/Products/PageTemplates/help/tales-string.stx 1.4 => 1.5 ===
string can contain variable substitutions of the form '$name' or
'${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 string. To prevent a '$' from being interpreted this way, it
must be escaped as '$$'.
=== Zope/lib/python/Products/PageTemplates/help/tales.stx 1.6 => 1.7 ===
The *Template Attribute Language Expression Syntax* (TALES) standard
- describes expressions that supply "TAL":../tal.stx and
- "METAL":../metal.stx with data. TALES is *one* possible expression
+ describes expressions that supply "TAL":tal.stx and
+ "METAL":metal.stx with data. TALES is *one* possible expression
syntax for these languages, but they are not bound to this
definition. Similarly, TALES could be used in a context having
nothing to do with TAL or METAL.
@@ -36,17 +36,17 @@
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
Built-in Names
@@ -97,19 +97,19 @@
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