Template Attribute Language


Table of Contents

  1. Attribute priority
  2. TAL namespace
    1. tal:define
    2. tal:condition
    3. tal:repeat
    4. tal:omit-tag
    5. tal:replace
    6. tal:content
    7. tal:attributes
      1. Optional attributes
    8. tal:on-error
  3. METAL namespace
    1. metal:define-macro
    2. metal:use-macro
    3. metal:define-slot
    4. metal:fill-slot
  4. I18N namespace
    1. i18n:translate
    2. i18n:attributes
    3. i18n:name
    4. XHTML in translations
  5. PHPTAL namespace
    1. phptal:debug
    2. phptal:cache
      1. Instant refreshing
      2. Limitations:
    3. phptal:tales
  6. tal:block
  7. PHPTALES
    1. path:
    2. Alternative PHP operator syntax
    3. string:
    4. php:
    5. not:
    6. exists:
    7. default
    8. structure
    9. Expression chains

This section describes TAL and its extensions. It mainly targets template designers but must be read by PHP integrators as well.