Skip to content

Instantly share code, notes, and snippets.

@clubdesarrolladores
Created October 10, 2014 15:59
Show Gist options
  • Save clubdesarrolladores/dbb8a4880e853bcffd45 to your computer and use it in GitHub Desktop.
Save clubdesarrolladores/dbb8a4880e853bcffd45 to your computer and use it in GitHub Desktop.
Correcto uso de Assetic en Symfony
assetic:
filters:
cssrewrite:
apply_to: "\.css$"
less:
node: %node%
node_paths: %node_paths%
{% stylesheets output="assetic/css/test.css"
'bundles/paladinipage/css/test.less'
%}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" />
{% endstylesheets %}
@font-face {
font-family: 'Open Sans22';
font-style: normal;
font-weight: 400;
src: local('Open Sans22'), local('OpenSans22'), url('../fonts/glyphicons-regular-faik.eot') format('woff2');
unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
body {
background: url('img/subimg.png');
p {
background: url('../img/img.png');
font-family: "Open Sans22", sans-serif;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment