Apache2-WebApp-Toolkit

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      domain             = www.domain.com                          # valid domain name
      disable_uploads    = 0                                       # allow file uploads
      post_max           = 5242880                                 # post max in bytes (example 5MB)
      temp_dir           = /var/www/project/tmp/uploads

      [template]
      cache_size         = 100                                     # total files to store in cache
      compile_dir        = /var/www/project/tmp/cache/templates    # path to template cache
      include_path       = /var/www/project/templates              # path to template directory
      stat_ttl           = 60                                      # template to HTML build time (in seconds)
      encoding           = utf8                                    # template output encoding

    H) Website sources. This includes HTML, CSS, Javascript, and images.
    When setting up FTP access - restrict access to this directory only.

    I) Basic template.

    J) Application error templates.

    K) Apache log directory that contains both access and error logs. Due to
    security reasons, this directory should always remain outside the

README.pod  view on Meta::CPAN

  domain             = www.domain.com                          # valid domain name
  disable_uploads    = 0                                       # allow file uploads
  post_max           = 5242880                                 # post max in bytes (example 5MB)
  temp_dir           = /var/www/project/tmp/uploads

  [template]
  cache_size         = 100                                     # total files to store in cache
  compile_dir        = /var/www/project/tmp/cache/templates    # path to template cache
  include_path       = /var/www/project/templates              # path to template directory
  stat_ttl           = 60                                      # template to HTML build time (in seconds)
  encoding           = utf8                                    # template output encoding

H) Website sources.  This includes HTML, CSS, Javascript, and images.  When setting
up FTP access - restrict access to this directory only.

I) Basic template.

J) Application error templates.

K) Apache log directory that contains both access and error logs.  Due to security
reasons, this directory should always remain outside the I</htdocs> directory path.

example/webapp.conf  view on Meta::CPAN

domain             = www.domain.com                          # valid domain name
disable_uploads    = 0                                       # allow file uploads
post_max           = 5242880                                 # post max in bytes (example 5MB)
temp_dir           = /var/www/project/tmp/uploads

[template]
cache_size         = 100                                     # total files to store in cache
compile_dir        = /var/www/project/tmp/cache/templates    # path to template cache
include_path       = /var/www/project/templates              # path to template directory
stat_ttl           = 60                                      # template to HTML build time (in seconds)
encoding           = utf8                                    # template output encoding

lib/Apache2/WebApp.pm  view on Meta::CPAN

  domain             = www.domain.com                          # valid domain name
  disable_uploads    = 0                                       # allow file uploads
  post_max           = 5242880                                 # post max in bytes (example 5MB)
  temp_dir           = /var/www/project/tmp/uploads

  [template]
  cache_size         = 100                                     # total files to store in cache
  compile_dir        = /var/www/project/tmp/cache/templates    # path to template cache
  include_path       = /var/www/project/templates              # path to template directory
  stat_ttl           = 60                                      # template to HTML build time (in seconds)
  encoding           = utf8                                    # template output encoding

H) Website sources.  This includes HTML, CSS, Javascript, and images.  When setting
up FTP access - restrict access to this directory only.

I) Basic template.

J) Application error templates.

K) Apache log directory that contains both access and error logs.  Due to security
reasons, this directory should always remain outside the I</htdocs> directory path.

lib/Apache2/WebApp/Template.pm  view on Meta::CPAN


=head2 Template processing

=head3 CONFIG

  [template]
  cache_size   = 100                                # total files to store in cache
  compile_dir  = /path/to/project/tmp/templates     # path to template cache
  include_path = /path/to/project/templates         # path to template directory
  stat_ttl     = 60                                 # template to HTML build time (in seconds)
  encoding     = utf8                               # template output encoding

=head3 METHOD

  sub _default {
      my ($self, $c) @_;

      $c->request->content_type('text/html');

      $c->template->process(
          'file.tt', {

usr/share/webapp-toolkit/webapp_conf.tt  view on Meta::CPAN

domain             = [% apache_domain   %]                      # valid domain name
disable_uploads    = 0                                          # allow file uploads
post_max           = 5242880                                    # post max in bytes (example 5MB)
temp_dir           = [% apache_doc_root %]/tmp/uploads

[template]
cache_size         = 100                                        # total files to store in cache
compile_dir        = [% apache_doc_root %]/tmp/cache/templates  # path to template cache
include_path       = [% apache_doc_root %]/templates            # path to template directory
stat_ttl           = 60                                         # template to HTML build time (in seconds)
encoding           = utf8                                       # template output encoding

[%- USE dir = Directory("$source/plugin/conf") -%]

[%- FOREACH file = dir.files %]
[%  PROCESS "$source/plugin/conf/$file.name" %]
[%- END -%]



( run in 0.750 second using v1.01-cache-2.11-cpan-49f99fa48dc )