>> 3. Template inheritance:
>> Using the html_container_controller.erl/html_container_view.et as the
>> root-template, how do I reuse header, main-content, sidebar and footer
>> from other components? I only found out how to have a static sidebar
>> and I would like that to be dynamic, for example showing blogrolls
>> related to a category or leaving out latest_entries from an entry
>> detail page.
>>     
>
> Use the component system. See my example code on the FOREACH thread,  
> or here 
> <http://forum.trapexit.org/viewtopic.php?t=11291&sid=bd4ecf2f0188639e9da9efc6aa1c12d4
>  
>  > (although trapexit loses all of my intentation).
>
> To summarise, you want a controller function like this:
>
> foo(A, Args) ->
>    [{ewc,sidebar,[A]},
>     {data,whatever_data(Args)}].

Does this mean that I will need to return {ewc,sidebar,[A]} from every 
function of every controller?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" 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/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to