Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * "view_name"
- The "view_name" hook is called before the filename of the view
- template is built and allows you to override the name.
- This feature has been added to allow usage of locale-specific
- templates, but it could be used for any purpose.
- hook view_name => sub {
- my ($view_name_ref) = @_;
- $$view_name_ref = "en-US/$$view_name_ref"; # prefix the view name with our current locale
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement