Practical mod_perl / HTML Book /



previous page: B.15.8. Apache::Layer—Layer Content Tree Over One or More Others
  
page up: HTML Version of the book
  
next page: B.15.10. Apache::SimpleReplace—Simple Template Framework

B.15.9. Apache::Sandwich—Layered Document (Sandwich) Maker


The Apache::Sandwich module allows you to add per-directory custom "header" and "footer" content to a given URI. Works only with GET requests. Output of combined parts is forced to text/html. The handler for the sandwiched document is specified by the SandwichHandler configuration variable. If it is not set, default-handler is used.

The basic concept is that the concatenation of the header and footer parts with the sandwiched file in between constitutes a complete valid HTML document.

Available from CPAN. See the module manpage for more information.

 

Continue to:

  • prev: B.15.8. Apache::Layer—Layer Content Tree Over One or More Others
  • Table of Contents
  • next: B.15.10. Apache::SimpleReplace—Simple Template Framework







TOP
previous page: B.15.8. Apache::Layer—Layer Content Tree Over One or More Others
  
page up: HTML Version of the book
  
next page: B.15.10. Apache::SimpleReplace—Simple Template Framework


Menu

  • HTML Book
  • PDF Book
  • Download Code
  • Table of Contents
  • Errata
  • mod_perl2 User's Guide
  • Sitemap

Search


Add to Google




Creative Commons License


Written by
Eric Cholet (Logilune) and
Stas Bekman (StasoSphere & Free Books).


[ Privacy Policy | Terms of Use | About Us | Search ]

© 2007 StasoSphere.com