LD
2005-04-28 05:25:59 UTC
Hi there,
obviously an active list :-)
Anyway - I'm so far really liking CGI::Prototype (with its simple MVC
implementation) but what I'm not clear on is the best way to
incorporate Reusable Components.
Say you've got the following components which all inherit from
CGI::Prototype...
Header: (reusable)
/Header.pm
/Header.tt
Various Pages:
/Main.pm
/Main.tt
/Login.pm
/Login.tt
<...>
Footer: (reusable)
/Footer.pm
/Footer.tt
...and somecgi.cgi which basically does
Main->activate;
What's the best way of including the output of Header and Footer in the
render phase - i.e., as if you'd concated the output of:
Header->activate; Main->activate; Footer->activate;
Any thoughts?
Cheers,
LD
obviously an active list :-)
Anyway - I'm so far really liking CGI::Prototype (with its simple MVC
implementation) but what I'm not clear on is the best way to
incorporate Reusable Components.
Say you've got the following components which all inherit from
CGI::Prototype...
Header: (reusable)
/Header.pm
/Header.tt
Various Pages:
/Main.pm
/Main.tt
/Login.pm
/Login.tt
<...>
Footer: (reusable)
/Footer.pm
/Footer.tt
...and somecgi.cgi which basically does
Main->activate;
What's the best way of including the output of Header and Footer in the
render phase - i.e., as if you'd concated the output of:
Header->activate; Main->activate; Footer->activate;
Any thoughts?
Cheers,
LD