Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added LESScss support

  • Loading branch information...
commit 02e51f56b9811d1354b0f2f763b4575231a52710 1 parent 738daed
@pascaldevink authored
View
3  app/config/config.yml
@@ -38,6 +38,9 @@ assetic:
bin: /usr/local/bin/coffee
node: /usr/bin/node
apply_to: "\.coffee$"
+ less:
+ node: /usr/bin/node
+ node_paths: [/usr/local/lib/nodejs]
# Doctrine Configuration
doctrine:
View
5 src/Pascal/FeedDisplayerBundle/Resources/public/css/base.less
@@ -0,0 +1,5 @@
+@body-color: white;
+
+body {
+ background-color: @body-color;
+}
View
5 src/Pascal/FeedDisplayerBundle/Resources/views/layout.html.twig
@@ -7,10 +7,11 @@ Rss Reader
{% block stylesheets %}
{{ 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/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' #}
<link rel="stylesheet" href="{{ asset_url }}" type="text/css" media="screen" />
{% endstylesheets %}
Please sign in to comment.
Something went wrong with that request. Please try again.