greenscript icon indicating copy to clipboard operation
greenscript copied to clipboard

Browser option not working

Open ghost opened this issue 13 years ago • 1 comments

I'm using greenscript 1.2.6m. Loving it so far. Ran into a small problem. The browser option doesn't do anything. If my webpage has #{greenscript.css "base", output:true/} #{greenscript.css 'base-ie8', browser: 'IE 8', output:true/} the output is just two lines without the conditional comments.

I noticed a missing underscore in your gs_.html file on line 36. It says browser: browser, but I think it should be browser: _browser. Also, should the media attribute also have an underscore? Not sure, because I haven't tested it.

ghost avatar Jan 12 '12 20:01 ghost

Hey,

maybe you can try something like this:

#{greenscript.css 'base' /}
#{greenscript.css 'base-ie8', browser: 'IE 8', media: 'screen' /}
#{greenscript.css output: 'all'}

I needed the media attribute as well as the third greenscript tag in order to get the desired result ... don't know whether this is the way it was intended to work.

I am using Play 1.2.4 and GreenScript version 1.2.7 and no greenscript.conf.

jtammen avatar Feb 11 '12 18:02 jtammen