Template::Provider::Amazon::S3 is a Perl module that enables template toolkit to use Amazon's S3 service as a provier of templates.
SYNOPSIS
use Template;
use Template::Provider::Amazon::S3;
# Specify the provider in the config for Template::Toolkit.
# Note since the AWS ACCESS KEY, SECRET, and bucket name
# is not provided here, it will get it from the following
# Envrionmental variables:
# AWS_ACCESS_KEY_ID
# AWS_SECRET_ACCESS_KEY
# AWS_TEMPLATE_BUCKET
my $tt_config = {
LOAD_TEMPLATES => [
Template::Provider::Amazon::S3->new()
]
};
my $tt = Template->new($tt_config);
$tt->process('file_on_s3',$vars) || die $tt->error;
Product's homepage
Requirements:
· Perl