I just tested in zope2 through the zmi.

standard_template.pt
--------------------
<!DOCTYPE html PUBLIC
  "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html metal:define-macro="page">
  <head>
  <title tal:content="template/title">The Title</title>
  </head>
  <body>
    Hey - this is a test.
  </body>
</html>

test.pt
-------
<metal:block metal:use-macro="here/standard_template.pt/macros/page">

</metal:block>

http://localhost:8080/test.pt - source rendered
-----------------------------------------------
<html>
  <head>

   <title></title>

  </head>
  <body>
    Hey - this is a test.

  </body>
</html>

-Kevin


On 3/4/10 2:50 PM, Shane Hathaway wrote:
> Kevin J. Kalupson wrote:
>>
>> On 3/4/10 2:22 PM, Shane Hathaway wrote:
>>  The current syntax is
>>> non-obvious and perhaps problematic, but workable.  Some other syntax
>>> might be better, but let's not break the current syntax in the 1.1
>>> branch.
>>>
>> I don't think it's a syntax issue, I think it's a behavioral issue.  I
>> think the 1.1 branch exhibits broken behavior.
> 
> I'm pretty sure it was in 1.0 as well.  It's a standard ZPT idiom.
> 
> Shane
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to