velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gonzalo Diethelm <gonzalo.dieth...@diethelm.org>
Subject Re: css in mail
Date Fri, 12 Oct 2007 17:03:01 GMT
Sorry, I answered this yesterday but it seems to have bounced. The
syntax I gave is wrong, it should be:


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


Hope that helps. Regards.

On Thu, 2007-10-11 at 13:17 -0700, Mark Stephens wrote:

> 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