velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Stephens <mark_r_steph...@yahoo.com>
Subject Re: css in mail
Date Thu, 11 Oct 2007 20:17:30 GMT
That worked ... at least in yahoo mail, gmail doesn't like it for some reason.

Is there a way to declare/set the $h in the .vm.  I tried your #set but I had to remove the
#set and instead do a put("h", "#") for the model.

Mark

----- Original Message ----
From: Gonzalo Diethelm <gonzalo.diethelm@diethelm.org>
To: Velocity Users List <user@velocity.apache.org>
Sent: Thursday, October 11, 2007 3:28:57 PM
Subject: Re: css in mail


Given that escaping in Velocity is the shortest path to madness, you
should rather use the old trick:


        #set $h = '#'
        ...
        {font-size: 100%; color: ${h}b73d3d; }


Best regards.

On Thu, 2007-10-11 at 12:22 -0700, Mark Stephens wrote:

> I tried putting it directly in the <head> tag and it showed up as
 plain text in my inbox.
> 
> So how do I escape lines like:
> 
>  #fc_coop .message { font-size:110%; color:#b73d3d; }
> 
> in velocity?
> 


-- 
Gonzalo Diethelm
gonzalo.diethelm@diethelm.org




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message