Inicio - Documentación - POM Theme - 11 Developers - 11.3 Merge tags - Merge tags for developers

Merge tags for developers

POM HTML templates use:

{{tag_name attribute="value"}}

Attributes may be double-quoted, single-quoted or unquoted where safe. Use literal delimiters for values containing spaces, quotes, HTML or nested tags:

{{translatable_string text=%%A label with "quotes"%%}}

Conditional blocks use:

{{if meta="featured" value="not_empty"}}
    …
{{else}}
    …
{{/if}}

Template contexts have different catalogs:

Do not evaluate arbitrary PHP or add an undocumented generic expression language. New merge tags need a named parser/renderer contract, attribute validation, context-aware escaping, translation behavior, empty-value behavior and public documentation.