[cgiapp] Adding a div of fixed content to evey page. Possible?

Gurunandan R. Bhat guru at informationmatters.in
Fri Oct 30 14:52:02 EDT 2009


Thanks Jason. This seems to be the most appropriate solution in my
situation. 
Amazing how extensible CGI-App is!

Regards
Gurunandan


On Fri, 2009-10-30 at 14:44 -0400, Jason Purdy wrote:

> You could use a callback, assigning a function to the load_tmpl hook and 
> then within that function, modify/insert your div of content into the 
> template parameters.
> 
> HTH,
> 
> Jason
> 
> Gurunandan R. Bhat wrote:
> > Hi, 
> > 
> > Is it possible to add the output of a template to every page/run-mode
> > without going through assigning it to a template->param in each
> > run-mode? 
> > 
> > I am aware of using cgi-postrun to wrap the output of a run-mode, but it
> > seems not possible to *insert* a div of content in an arbitraty (but
> > fixed position) using this trick. Or is it? 
> > 
> > I would also like to avoid another template processor (like HTML::Mason
> > or Text::Template) to do this if there is an easier way. 
> > 
> > Thanks for your attention
> > Gurunandan
> > 
> > 
> > #####  CGI::Application community mailing list  ################
> > ##                                                            ##
> > ##  To unsubscribe, or change your message delivery options,  ##
> > ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> > ##                                                            ##
> > ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> > ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> > ##                                                            ##
> > ################################################################
> 
> #####  CGI::Application community mailing list  ################
> ##                                                            ##
> ##  To unsubscribe, or change your message delivery options,  ##
> ##  visit:  http://lists.openlib.org/mailman/listinfo/cgiapp    ##
> ##                                                            ##
> ##  Web archive:   http://lists.openlib.org/pipermail/cgiapp/   ##
> ##  Wiki:          http://cgiapp.erlbaum.net/                 ##
> ##                                                            ##
> ################################################################
> 




More information about the cgiapp mailing list