Template Attribute Language


Table of Contents

  1. Referencing variables with ${}
  2. Attribute priority
  3. 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
  4. METAL namespace
    1. metal:define-macro
    2. metal:use-macro
    3. metal:define-slot
    4. metal:fill-slot
  5. I18N namespace
    1. i18n:translate
    2. i18n:attributes
    3. i18n:name
    4. XHTML in translations
  6. PHPTAL namespace
    1. phptal:debug
    2. phptal:cache
      1. Instant refreshing
      2. Limitations:
    3. phptal:tales
  7. tal:block
  8. PHPTALES
    1. path:
    2. Alternative PHP operator syntax
    3. string:
    4. php:
    5. not:
    6. exists:
    7. true:
    8. default
    9. structure
    10. Expression chains

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