• 05.12.11 - LESS CSS with Assetic and Symfony 2

    extends CSS with dynamic behavior such as variables, mixins, operations and functions.For the LESS Assetic filter we need to have installed first , the npm package manager and the LESS library. Under Ubuntu you can install all of those in an easy way through the terminal: Install the LESS library: [...]
    More news about:  Symfony2
    Tags:  php,  css,  Assetic,  LESS,  nodejs,  npm
  • 04.12.11 - Minify CSS and JS files with Assetic and Symfony2

    Unify all our CSS and JS stuff into unique minified files improves significantly your application performance.Thanks to the Assetic Symfony2 bundle you can do it on the fly.First, , unzip it and move the "yuicompressor-*.jar" to the "app/Resources/java" folder.Connect Assetic with the compressor [...]
    More news about:  Symfony2
    Tags:  php,  css,  javascript,  Twig,  Symfony2,  Assetic,  YUI compressor,  minify
  • 05.09.10 - Embed images, css and javascript in HTML

    The format of the source path of CSS, javascript and images may not be external. Using the "data" source type we can embed the element into the HTML document. An example of it: Or CSS: The complication of this method is to get the "base64" encoded content of the object. A simply way to get it is [...]
    More news about:  html
    Tags:  php,  streams,  css,  javascript,  base64,  embed