velocity-user  

Re: set directive and CSS syntax

Will Glass-Husain
Sun, 05 Nov 2006 22:04:43 -0800

The Velocity syntax looks ok to me.  The quotes don't matter, they are
outside of the reference.

On 11/3/06, Timothy Stone <[EMAIL PROTECTED]> wrote:
So we have set a bunch of variables to use as inline CSS directives
in HTML emails.

For example:

#set( $div_header = "height: 125px; padding: 0 10px 0 0; color:
#13aaf3; background: white url('${IMAGE_SERVER}/path/to/image') top
left repeat-x; font-size: 18px;")

Note that the "url" is single quoted. I noted this was a problem and
removed them, leaving:

#set( $div_header = "height: 125px; padding: 0 10px 0 0; color:
#13aaf3; background: white url(${IMAGE_SERVER}/path/to/image) top
left repeat-x; font-size: 18px;")

This did not seem to correct the problem we are having and I'm
attributing it to the
"url(${IMAGE_SERVER}/path/to/image)" portion itself.

Is Velocity misinterpreting the url() call as a VM, or something else?

Thanks,
Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Forio Business Simulations

Will Glass-Husain
[EMAIL PROTECTED]
www.forio.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]