Ticket #128 (assigned enhancement)

Opened 10 months ago

Last modified 10 months ago

rename image assets in css ?

Reported by: gaspard Assigned to: gaspard (accepted)
Priority: major Milestone: 1.0
Component: zena Keywords:
Cc: Estimated Number of Hours: 0
Add Hours to Ticket: 0 Billable?: 1
Total Hours: 0

Description (Last modified by gaspard)

how to handle templates with css code such as this ?

background:url('funky.jpg')

Change History

2008-02-07 20:32:35 changed by gaspard

  • status changed from new to assigned.
  • description changed.

Current workaround

Write this part of the css inside the layout with a <style> tag:

<style>
#header {background:url('funky.jpg');}
</style>

An 'url' inside a "style" tag is renamed just like img assets.

2008-02-08 10:01:51 changed by gaspard

(In [860]) Replaced 'secure' by 'secure!' as it raises exceptions. Added 'secure' which returns nil on failure. <style> tags are now parsed for assets (url translation). Refs #128.