*{ * Parameters: * - src (required) filename without the leading path eg "mystyles.css" * - media (optional) media : screen, print, aural, projection ... * - compress (optional) if set to false, file is added to compressed output, * but is not itself compressed * * When the plugin is enabled, outputs a comment and adds the css file to the * list of files to be compressed. * When the plugin is disabled, outputs a css tag with the original source * for easy debugging. * * eg: * #{press.stylesheet src: "widget.css"} * #{press.stylesheet src: "ui.css", media:'screen'} * #{press.stylesheet src: "validation.css"} * #{stylesheet 'print.css', media:'print'/} * #{press.stylesheet src: "path/*.css"} * #{press.stylesheet src: "path/**.css"} * * #{press.compressed-stylesheet} * * Source css files MUST be in utf-8 format. * See the plugin documentation for more information. * }* %{ ( _arg ) && ( _src = _arg); // compress defaults to true if(_compress == null) { _compress = true; } if(! _src) { throw new play.exceptions.TagInternalException("src attribute cannot be empty for stylesheet tag"); } }% ${ press.Plugin.addCSS(_src, _compress, _media).raw() }