I have created my template, my css, and the relavent image files, in
assets/templates/mytemplate/template.html
assets/templates/mytemplate/css/styles.css
assets/templates/mytemplate/img/lotsofimages.gif
and have got everything working.
I have atached a css file to my template, with
<style type="text/css" media="screen,print">@import "[(rb_base_url)]templates/mytemplate/css/styles.css";</style>
The problem is I cant help thinknig there must be a way to avoid hard coding the image paths for the template in the css file similar to the use of the [(rb_base_url)] above. Is there a way to get modx to parse the css so that I can avoid hard coded references like "http:// mysite.com/assets/templates/mytemplate/img/background.jpg" in the CSS file?
[edit]
i know this isnt a problem as such, and even relative paths are an adequate solution - the question is largely out of curiosity
[/edit]