Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

tokuhirom (7396)

  (email not shown publicly)

Journal of tokuhirom (7396)

Sunday November 19, 2006
09:30 AM

I want to Sledge::Config->path_to.

[ #31659 ]

I want to write tmpl_path with path_to in config.
Because, tmpl_path is a configuration variable.

package Project::Config;
use strict;
use warnings;
use base qw/Sledge::Config/;
use Sledge::Plugin::PathTo;
use vars qw(%C);
*Config = \%C;
$C{TMPL_PATH} = path_to('view');

and, next version of Sledge::Config::YAML will supports
path_to, likes Catalyst::Plugin::ConfigLoader::YAML.Follw is
example configuration file:

  tmpl_path: __path_to('view')__

Yeah, that's so cool.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.