Text::MicroMason::ApacheHandler(3pm)

Text::MicroMason::ApacheHandler3pm

Use micromason from mod_perl

Usage

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>

Overview

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.

Configuration

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.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 6 times.

  1. 6.0–7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13

From libtext-micromason-perl 2.23-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.