Skip to content

Instantly share code, notes, and snippets.

@WishCow
Created July 22, 2013 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WishCow/6053473 to your computer and use it in GitHub Desktop.
Save WishCow/6053473 to your computer and use it in GitHub Desktop.
Assetic groups in Symfony2
assetic:
debug: %kernel.debug%
use_controller: false
bundles: [ YourBundle ]
assets:
frontend:
inputs:
- @YourBundle/Resources/public/css/cssreset-min.css
- @YourBundle/Resources/public/css/fonts.css
- @YourBundle/Resources/less/layout.less
- @YourBundle/Resources/less/homepage.less
# And then in your base.html.twig:
#{% block stylesheets %}
# {% stylesheets "@frontend" %}
# <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="all" />
# {% endstylesheets %}
#{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment