Shane Hathaway <sh...@hathawaymix.org> added the comment:

I ran into the same issue. The following code worked with 1.1.1 but fails with
1.1.2:

from chameleon.zpt.template import PageTemplate

master = PageTemplate('''\
<!DOCTYPE html>
<html metal:define-macro="main">
<body>
<div metal:define-slot="content">
content here
</div>
</body>
</html>
''')

page = PageTemplate('''\
<html metal:use-macro="master.macros['main']">
<div metal:fill-slot="content">
Hello, world!
</div>
</html>
''')

s = page(master=master)

assert 'Hello, world!' in s
assert s.startswith('<!DOCTYPE html>')

__________________________________
Repoze Bugs <b...@bugs.repoze.org>
<http://bugs.repoze.org/issue139>
__________________________________
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to