Re: Recommended method to reference assets in .css file?

2012-04-25 Thread trsvax
/Recommended-method-to-reference-assets-in-css-file-tp5663514p5664625.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail

Re: Recommended method to reference assets in .css file?

2012-04-25 Thread Cezary Biernacki
On Wed, Apr 25, 2012 at 1:09 AM, yazdog8 j...@paulsenweb.com wrote: If you're using Less CSS (or maybe sass possibly), you can set some basic variables at the top of your file that can be used as a cache buster in your paths. http://lesscss.org/#-variables And you can even directly

Re: Recommended method to reference assets in .css file?

2012-04-25 Thread badluck13
this message in context: http://tapestry.1045711.n5.nabble.com/Recommended-method-to-reference-assets-in-css-file-tp5663514p5664720.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

Re: Recommended method to reference assets in .css file?

2012-04-25 Thread Lenny Primak
And what an awesome module it is! On Apr 25, 2012, at 8:01 AM, Cezary Biernacki cezary...@gmail.com wrote: On Wed, Apr 25, 2012 at 1:09 AM, yazdog8 j...@paulsenweb.com wrote: If you're using Less CSS (or maybe sass possibly), you can set some basic variables at the top of your file that

Recommended method to reference assets in .css file?

2012-04-24 Thread David Rees
What's the recommended method to reference assets in a .css file - for example background images? Currently I use a hard-coded relative URL, but this has the drawback of causing the browser to cache the resource after it's changed leading to browsers caching old resources unless I change the name

Re: Recommended method to reference assets in .css file?

2012-04-24 Thread Chris Mylonas
Hi Dave, Good question - I don't know about from within a CSS file. However within a template it offers this: img src=${asset:context:image/tapestry_banner.gif} alt=Banner/ from this page: https://tapestry.apache.org/assets.html image/tapestry_banner.gif lives in

Re: Recommended method to reference assets in .css file?

2012-04-24 Thread yazdog8
If you're using Less CSS (or maybe sass possibly), you can set some basic variables at the top of your file that can be used as a cache buster in your paths. http://lesscss.org/#-variables -- View this message in context: http://tapestry.1045711.n5.nabble.com/Recommended-method-to-reference

Re: Recommended method to reference assets in .css file?

2012-04-24 Thread David Rees
On Tue, Apr 24, 2012 at 4:04 PM, Chris Mylonas ch...@opencsta.org wrote: Good question - I don't know about from within a CSS file. ... Looking into the tapestry source, specifically   src/main/resources/org/apache/tapestry5/tapestry-console.css it uses relative links to the pics in