Some generic templates and the first piggy bank ones [skip ci]

This commit is contained in:
James Cole
2015-05-02 10:53:54 +02:00
parent 466c2a68c2
commit 5cd2ef4a5e
6 changed files with 170 additions and 0 deletions

View File

@@ -31,6 +31,11 @@ class General extends Twig_Extension
return App::make('amount')->format($string);
}, ['is_safe' => ['html']]
);
$filters[] = new Twig_SimpleFilter(
'formatAmountPlain', function ($string) {
return App::make('amount')->format($string, false);
}
);
$filters[] = new Twig_SimpleFilter(
'formatJournal', function ($journal) {