Skip to content

Commit

Permalink
[TwigBundle] added an asset tag
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 24, 2010
1 parent be9148a commit 763a99e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Symfony/Framework/TwigBundle/Extension/Helpers.php
Expand Up @@ -42,6 +42,9 @@ public function getTokenParsers()
// {% stylesheets %}
new HelperTokenParser('stylesheets', '', 'stylesheets', 'render'),

// {% asset 'css/blog.css' %}
new HelperTokenParser('asset', '<location>', 'assets', 'getUrl'),

// {% route 'blog_post' with ['id': post.id] %}
new HelperTokenParser('route', '<route> [with <arguments:array>]', 'router', 'generate'),

Expand Down

0 comments on commit 763a99e

Please sign in to comment.