mod_txt

mod_txt is a simple output filter module to display plain text files as HTML (or XHTML) with a header and footer.
Download

mod_txt Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Nick Kew
  • Publisher web site:
  • http://apache.webthing.com/mod_accessibility/

mod_txt Tags


mod_txt Description

mod_txt is a simple output filter module to display plain text files as HTML (or XHTML) with a header and footer. mod_txt is a simple output filter module to display plain text files as HTML (or XHTML) with a header and footer. When a text file is requested, mod_txt module escapes the text as required for HTML, and displays it between the header and the footer.How to use itApart from setting the Header and Footer, you will need to insert the filter in the output chain, and set the Content Type to HTML. So a configuration to use this module looks like: AddOutputFilter text-filter .txt AddType text/html .txt TextHeader /path/to/header-file TextFooter /path/to/footer-fileNote that this is not a smart text filter, so the text should be enclosed in HTML < pre >. End the header file by opening PRE, and start the footer by closing it.Configuration DirectivesTextHeader Syntax: TextHeader filenameSpecifies a path to use as header for the text file.TextFooter Syntax: TextFooter filenameSpecifies a path to use as footer for the text file. Requirements: · Apache 2.x


mod_txt Related Software