GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Text::MicroMason::ApacheHandler(3) User Contributed Perl Documentation Text::MicroMason::ApacheHandler(3)

Text::MicroMason::ApacheHandler - Use MicroMason from mod_perl

In your httpd.conf or equivalent Apache configuration file:

  PerlModule Text::MicroMason::ApacheHandler

  <Files *.mm>
    SetHandler perl-script
    PerlHandler Text::MicroMason::ApacheHandler
  </Files>

In your document root or other web-accessible directory:

  <% my $visitor = $r->connection->remote_host(); %>
  <html>
    Hello there <%= $visitor %>! 
    The time is now <%= localtime() %>.
  </html>

Caution: This module is new, experimental, and incomplete. Not intended for production use. Interface subject to change. If you're interested in this capability, your feedback would be appreciated.

The following configuration parameters are supported:
MicroMasonSyntax
    PerlSetVar MicroMasonSyntax HTMLMason
    

Name of the syntax class that will compile the templates. Defaults to HTMLMason.

MicroMasonMixins
    PerlAddVar MicroMasonMixins Safe
    PerlAddVar MicroMasonMixins CatchErrors
    

List of additional mixin classes to be enabled.

MicroMasonAttribs
    PerlAddVar MicroMasonAttribs "-AllowGlobals, allow_globals => '$r'"
    

Allows for any set of attributes to be defined. Mixin names prefaced with a dash can also be included.

For an overview of this templating framework, see Text::MicroMason.

This is a mixin class intended for use with Text::MicroMason::Base.

For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.

2019-06-27 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.