Apache-ClearSilver

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

       plate system.

SYNOPSIS
           # add the following to your httpd.conf
           PerlModule          Apache::Template

           # set various configuration options, e.g.
           HDFLoadPath /path/to/loadpath /path/to/anotherpath
           HDFFile     /path/to/mydata.hdf /path/to/mydata2.hdf
           HDFSetValue Foo bar
           CSContentType "text/html; charset=utf-8"

           # now define Apache::Clearsilver as a PerlHandler, e.g.
           <Files *.cs>
             SetHandler   perl-script
             PerlHandler  Apache::Template
           </Files>

DESCRIPTION
       Apache::ClearSilver is Apache/mod_perl interface to the ClearSilver
       template system.

lib/Apache/ClearSilver.pm  view on Meta::CPAN


=head1 SYNOPSIS

    # add the following to your httpd.conf
    PerlModule          Apache::Template

    # set various configuration options, e.g.
    HDFLoadPath /path/to/loadpath /path/to/anotherpath
    HDFFile     /path/to/mydata.hdf /path/to/mydata2.hdf
    HDFSetValue Foo bar
    CSContentType "text/html; charset=utf-8"

    # now define Apache::Clearsilver as a PerlHandler, e.g.
    <Files *.cs>
      SetHandler   perl-script
      PerlHandler  Apache::Template
    </Files>

=head1 DESCRIPTION

Apache::ClearSilver is Apache/mod_perl interface to the ClearSilver template system.

t/03_content_type.t  view on Meta::CPAN


use strict;
use warnings;

use Apache::Test;
use Apache::TestRequest;

plan tests => 1, have_lwp;

my $head = GET_HEAD "/test3.cs";
ok($head, qr!Content-Type: text/html; charset=utf-8!);

t/conf/extra.conf.in  view on Meta::CPAN

PerlModule Apache::ClearSilver
<Files *.cs>
  SetHandler     perl-script
  PerlHandler    Apache::ClearSilver
  HDFSetValue    Foo hello
  CSContentType "text/html; charset=utf-8"
</Files>



( run in 0.270 second using v1.01-cache-2.11-cpan-4d50c553e7e )