roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <snoopd...@gmail.com>
Subject Re: Comments showing up in feeds
Date Wed, 02 Jul 2008 14:08:16 GMT
On Tue, Jul 1, 2008 at 11:10 AM, Boris Milikič <boris.milikic@mf-rs.si> wrote:
> Can I use velocity variable -  ${entry.commentCount} in java script function?

Yes, in a way. You can use a Roller template to generate JavaScript code.

JavaScript does not know about Velocty expressions, of course. If you
use that in a Roller template, it will be evaluated on the server-side
and turned into a number in the generated HTML/JavaScript.

- Dave
Mime
View raw message