roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <>
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č <> 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
View raw message