Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main -> dw-free cgi-bin/DW/Template.pm
- --- cvs/dw-free/cgi-bin/DW/Template.pm 2010-01-31 16:07:22.000000000 +0000
- +++ cgi-bin/DW/Template.pm 2010-01-31 16:15:24.000000000 +0000
- @@ -44,12 +44,18 @@
- site => $LJ::SITEROOT,
- });
- +my $dw_constants = Template::Namespace::Constants->new({
- + need_res => \&LJ::need_res,
- +});
- +
- +
- # precreating this
- my $view_engine = Template->new({
- INCLUDE_PATH => "$LJ::HOME/views/",
- NAMESPACE => {
- site => $site_constants,
- roots => $roots_constants,
- + dw => $dw_constants,
- },
- FILTERS => {
- ml => [ \&ml, 1 ],
Add Comment
Please, Sign In to add comment