Hello,

I'm a new Chameleon user, coming from the Genshi's world ...
I was wondering if it's possible to override a variable from another template ?
For example I tried the following but it doesn't work:

layout.html:
=======

<!DOCTYPE html>
<metal:page define-macro="page">
<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:tal="http://xml.zope.org/namespaces/tal";
      xmlns:metal="http://xml.zope.org/namespaces/metal";
      xmlns:i18n="http://xml.zope.org/namespaces/i18n";
      tal:define="tinymce False">

(...)

<script tal:condition="tinymce" type="text/javascript" src="${url('/js/tinymce/jscripts/tiny_mce/tiny_mce.js')}"></script>


index.html:
=======

<metal:page use-macro="load: layout.html" tal:define="tinymce True">
<html xmlns="http://www.w3.org/1999/xhtml";
      xmlns:tal="http://xml.zope.org/namespaces/tal";
      xmlns:metal="http://xml.zope.org/namespaces/metal";
      xmlns:i18n="http://xml.zope.org/namespaces/i18n";>

(...)


What I'm looking for is the Chameleon equivalent of:
<xi:include href="layout.html" py:with="tinymce=True" />

Thank you,
Julien

--
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to