Created
June 20, 2013 09:47
-
-
Save nutzhub/5821556 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for my $method (qw(build_date bought_date)) { | |
Sub::Install::install($_ => sub { | |
my ($self, $input_arg) = @_; | |
return format_string($self->$method); | |
}); | |
} | |
sub apejens {} | |
*<package>::apejens = \&sub {}; | |
$c->stash( | |
dt_formater => DateTime::Format::Natural->new(), | |
); | |
[% item.bought.strftime('%y-%m-%d') %] | |
[% relative_time(item.bought) %] | |
[% item.description OR 'Default' %] | |
[% FOR item.stores | |
for (qw(user_id)) { | |
Exception->throw("$_ is not specified") unless ${$_}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment