The spelling:

   <route name="route-name" path="/some/path" view=".some.view"/>

Is syntactic candy that can also be spelled like this:

   <route name="route-name" path="/some/path"/>
   <view view=".some.view" route_name="route-name"/>

So you can probably do this:

   <route name="route-name" path="/some/path"/>

   <view view=".some.view" route_name="route-name"
      wrapper="some-other-view"/>
   <view view=".some.other_view" route_name="route-name"
       name="some-other-view"/>

I haven't tried this, but I'm pretty sure it will work.


On 4/21/10 2:05 AM, Iain Duncan wrote:
> Is there any chance of having wrapped views work on views declared with
> <route/>? ( IE declare a wrapper predicate on a route in zcml )
>
> Seems like it would be handy to be able to do so.
>
> thanks
> Iain
>
>
>
>
>
> _______________________________________________
> Repoze-dev mailing list
> Repoze-dev@lists.repoze.org
> http://lists.repoze.org/listinfo/repoze-dev


-- 
Chris McDonough
Agendaless Consulting, Fredericksburg VA
The repoze.bfg Web Application Framework Book: http://bfg.repoze.org/book
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to