diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-10-03 02:22:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-10-03 02:22:25 -0500 |
commit | 75719452d02d7afc2f2d1f6454ce9aba715a3db0 (patch) | |
tree | d916d91bb1bd48aa2b2ef8a92dc1a608c2b498f7 /lib | |
parent | 652f66cf59308f901892457f778f7ad2e26411a6 (diff) | |
download | ox-view-tt-75719452d02d7afc2f2d1f6454ce9aba715a3db0.tar.gz ox-view-tt-75719452d02d7afc2f2d1f6454ce9aba715a3db0.zip |
make mappings directly available to templates
Diffstat (limited to 'lib')
-rw-r--r-- | lib/OX/View/TT.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/OX/View/TT.pm b/lib/OX/View/TT.pm index df6461a..69bfa91 100644 --- a/lib/OX/View/TT.pm +++ b/lib/OX/View/TT.pm @@ -36,6 +36,7 @@ sub _build_template_params { return +{ base => $r->script_name, uri_for => sub { $r->uri_for(@_ == 1 ? $_[0] : { @_ }) }, + m => { $r->mapping }, %{ $params || {} } } } |