Questions tagged [template-tal]

TAL (Template Attribute Language) is a XML-attribute based templating language standard, used by Zope Page Templates, Chameleon, PHPTAL and other templating libraries.

TAL (Template Attribute Language) is a XML-attribute based templating language standard, used by Zope Page Templates, Chameleon and other templating libraries.

A sister language METAL (Macro Expansion Template Attribute Language) adds macro capabilities to TAL; use the tag for questions specific to macro handling.

The language is aimed at making collaboration between designers and programmers easier, by hiding all templating constructs in XML or HTML attributes, allowing a template editor to create and maintain templates that still render in a browser.

Use this tag for general TAL syntax questions. Consider using the , or tags as needed if the question is specific to an implementation.

90 questions
2
votes
3 answers

Condition depending other field

i have 2 fields (fieldA and fieldB) what i want : - if the fieldA contains something then the fieldB should not be displayed what i try : so…
bklups
  • 101
  • 1
2
votes
2 answers

PHPTAL: graceful treatment of undefined variables

If I use a variable that hasn't been put into the scope, PHPTAL throws an exception. Is there any way of making PHPTAL fall back to graceful defaults, for example evaluating to false in a boolean context, to a blank in a string context, etc?
user8599
2
votes
4 answers

An HTML template engine for Java like Genshi or Zope's TAL

I need to work with a Web Designer so... Can you suggest me any? Thanks in advance FYI: Zope's TAL The Template Attribute Language (TAL) is a templating language used to generate dynamic HTML and XML pages. Its main goal is to simplify the…
Aito
  • 6,812
  • 3
  • 30
  • 41
2
votes
1 answer

Why is a variable defined outside a fill-slot or define-macro element not visible inside this element?

Why is a variable defined outside a fill-slot or define-macro element not visible inside this element?
wolfrevo
  • 6,651
  • 2
  • 26
  • 38
2
votes
2 answers

How to select option in HTML select using TAL in ZPT?

I got the following drop-down list - SELECT element - construction in my ZPT template: Is it possible…
Jake Wilson
  • 88,616
  • 93
  • 252
  • 370