/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
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
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
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
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
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
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
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