Skip to content

Commit

Permalink
Added LESScss support
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal de Vink committed Apr 15, 2012
1 parent 738daed commit 02e51f5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/config/config.yml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ assetic:
bin: /usr/local/bin/coffee bin: /usr/local/bin/coffee
node: /usr/bin/node node: /usr/bin/node
apply_to: "\.coffee$" apply_to: "\.coffee$"
less:
node: /usr/bin/node
node_paths: [/usr/local/lib/nodejs]


# Doctrine Configuration # Doctrine Configuration
doctrine: doctrine:
Expand Down
5 changes: 5 additions & 0 deletions src/Pascal/FeedDisplayerBundle/Resources/public/css/base.less
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
@body-color: white;

body {
background-color: @body-color;
}
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Rss Reader
{% block stylesheets %} {% block stylesheets %}
{{ parent() }} {{ parent() }}


{% stylesheets output='css/*.css' filter='yui_css,cssrewrite' {% stylesheets output='css/*.css' filter='less,?yui_css,cssrewrite,'
'bundles/pascalfeeddisplayer/css/doc.css' 'bundles/pascalfeeddisplayer/css/doc.css'
'bundles/pascalfeeddisplayer/css/bootstrap.min.css' 'bundles/pascalfeeddisplayer/css/bootstrap.min.css'
'bundles/pascalfeeddisplayer/css/bootstrap-responsive.min.css' %} 'bundles/pascalfeeddisplayer/css/bootstrap-responsive.min.css'
'@PascalFeedDisplayerBundle/Resources/public/css/base.less' %}
{# If your files are in web/css/, call them with: 'css/mystyle.css' #} {# If your files are in web/css/, call them with: 'css/mystyle.css' #}
<link rel="stylesheet" href="{{ asset_url }}" type="text/css" media="screen" /> <link rel="stylesheet" href="{{ asset_url }}" type="text/css" media="screen" />
{% endstylesheets %} {% endstylesheets %}
Expand Down

0 comments on commit 02e51f5

Please sign in to comment.