Permalink
Browse files

Added more twig extension functions.

Closes #33
  • Loading branch information...
dmyers authored and canton7 committed Sep 5, 2012
1 parent 0171128 commit c604a7a7c5fabea5181c6b99fe9c3e658a5814fa
Showing with 3 additions and 1 deletion.
  1. +3 −1 classes/casset/addons/twig.php
@@ -38,7 +38,9 @@ public function getFunctions()
'render_css' => new \Twig_Function_Function('Casset::render_css'),
'render_js' => new \Twig_Function_Function('Casset::render_js'),
'img' => new \Twig_Function_Function('Casset::img'),
- 'img_url' => new \Twig_Function_Function('Casset::get_filepath_img')
+ 'img_url' => new \Twig_Function_Function('Casset::get_filepath_img'),
+ 'add_css' => new \Twig_Function_Function('Casset::css'),
+ 'add_js' => new \Twig_Function_Function('Casset::js'),
);
}
}

0 comments on commit c604a7a

Please sign in to comment.