Shane Hathaway <> added the comment:

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

from chameleon.zpt.template import PageTemplate

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

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

s = page(master=master)

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

Repoze Bugs <>
Repoze-dev mailing list

Reply via email to