Questions tagged [template-metal]

METAL (Macro Expansion Template Attribute Language) is an extension to TAL, XML-attribute based templating language standard to add macro functionality, used by Zope Page Templates, Chameleon, PHPTAL and other templating libraries.

METAL (Macro Expansion Template Attribute Language) adds macro capabilities to TAL; see .

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

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 METAL syntax questions. Consider using the , or tags as needed if the question is specific to an implementation.

22 questions
0
votes
2 answers

plone + formlib: how to reference form.pt

I'm working on plone 3.2.1 and I've made a formlib's form with a custom template: from Products.Five.formlib import formbase from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile ... class MyForm(formbase.PageForm): ... …
jdinunzio
  • 1,506
  • 1
  • 11
  • 26
0
votes
1 answer

Loading Macros from Other Template Files in Chameleon

I have a Pyramid app that uses Chameleon for its templates. I would like to create a master template page (say master.pt) that contains several macros that I user throughout the pages of my site. I am trying to load these macros in different…
Aviv
  • 75
  • 7
0
votes
1 answer

zpt xml-schema definition

Where can i find xml-schema definition for ZPT attribute language?
Odomontois
  • 15,918
  • 2
  • 36
  • 71
0
votes
2 answers

How to add a prefix string to a TAL:attribute repeat index command?

I using TAL (template attribute language) with my Pyramid Chameleon project. I want to use a loop using TAL to define attributes in my template.
0
votes
0 answers

Zope Page Templates: calling a macro from a macro

.... .... Basically it works, but it seems to create problems with permissions. Is this generally a bad idea?
Georg Pfolz
  • 1,416
  • 2
  • 12
  • 12
0
votes
1 answer

How to use HTML5 Boilerplate in a ZPT?

I'm trying to update one of our older ZPT based applications and I would like to implement the following HTML5 Boilerplate best practice for adding conditional IE classes to the .