Personal tools
You are here: Home Zope Zope宝典 高级页面模板
Document Actions

高级页面模板

by 潘俊勇 last modified 2005-12-14 00:25

高级页面模板1

+9.1 高级TAL : 各种限制词

+9.1.1高级内容插入 : replace | content

+9.1.1.1插入结构 : Structure限制词, 保留html标签

+9.1.1.2模拟元素(Dummy Elements): nothing限制词

+9.1.1.3默认内容 : default限制词

+9.1.2高级标记符重复 : repeat

+9.1.2.1重复变量 : index | number | even | odd | start | end | length | letter | Letter

+9.1.2.2重复提示: tal:omit-tab | 批块和排序

+9.1.3 高级属性控制 : attributes

+9.1.4 定义变量 : define

+9.1.5 忽略标记符 : omit-tag

+9.1.6 错误处理 : on-error

+9.1.7 在TAL语句之间交互 : 执行顺序, 冲突

高级页面模板2

+9.2 表单处理 : form/action/response

+9.3 表达式 (表达式和变量)

+9.3.1内建变量 template | user | repeat | request | nothing | default | default| options | attrs | root | here | container | modules

+9.3.2 字符串表达式 string ${}

+9.3.3 路径表达式(Path Expressions) URL

+9.3.3.1替代路径 |

+9.3.4 Not表达式(Not Expressions)not:

+9.3.5 Nocall表达式 nocall:用作定义变量上

+9.3.6 Exists表达式

+9.3.7 Python表达式

+9.3.7.1比较 > == <

+9.3.7.2 使用其它的表达式类型 path | string | exists | nocall

+9.4 使用Zope对象 (属性/条目)

+9.5 使用脚本 (简化页面)

+9.6 调用DTML

+9.8 Python模块 (例: python:math.api, modules/math/api)

[高级页面模板3]

+9.9 Macros(宏) 重用

+9.9.1使用macro metal:define-macro | metal:use-macro

+9.9.2 Macro细节

+9.9.3 使用slots (用于重载)

+9.10 定制默认的外观

+9.11 混合METAL和TAL

+9.12 全页面Macros

+9.13 缓存模板

+9.14 页面模板工具

+9.14.1 批块化处理巨大的信息集合

+9.14.2其它的工具

结论


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: