velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <>
Subject Writing JavaScript with Velocity
Date Tue, 28 Oct 2003 19:58:00 GMT
I have the following VTL that I'm using to write JavaScript:

  #if ($level == 0)
    #set ($node = $
    var $node = new WebFXTree('$menu.title');

It's puking at $node.setBehavior.  Ideally, this would print out something
like the following:

    var tree = new WebFXTree('Root');  

Is this possible, or do I have to use JavaScript's eval function?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message