package Celaenito::Template;
use strict;
use warnings;
use Template;
require Exporter;
our @ISA = qw(Exporter);
our @EXPORT = qw(TMPL);

our $TMPL;

sub TMPL () {
    unless ($TMPL) {
	$TMPL = Template->new({
	    INCLUDE_PATH => 'tmpl',
	    PLUGIN_BASE  => 'Celaenito::Template::Plugin',
	    COMPILE_EXT  => 'c',
	});
    }
    $TMPL;
}

1;
