Permalink
Browse files

added Asset methods to the list of twig custom functions

  • Loading branch information...
1 parent 49cfbfc commit c5c4ceef88578e8dfd88117ad4fd84d7828baa39 @WanWizard WanWizard committed Apr 30, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 classes/twig/fuel/extension.php
View
5 classes/twig/fuel/extension.php
@@ -65,6 +65,11 @@ public function getFunctions()
'form_select' => new Twig_Function_Function('Form::select'),
'form_label' => new Twig_Function_Function('Form::label'),
'form_val' => new Twig_Function_Function('Input::param'),
+
+ 'asset_css' => new Twig_Function_Function('Asset::css'),
+ 'asset_js' => new Twig_Function_Function('Asset::js'),
+ 'asset_img' => new Twig_Function_Function('Asset::img'),
+ 'asset_render' => new Twig_Function_Function('Asset::render'),
);
}

0 comments on commit c5c4cee

Please sign in to comment.