user3310447
user3310447

Reputation: 135

Velocity Template append variable to url

I'm trying to attached a velocity variable to a url like so :

 /url/$imagename.png

This just display $imagename and not the variable. How to I display the variable without adding white-space?

Upvotes: 1

Views: 2149

Answers (1)

AbstractChaos
AbstractChaos

Reputation: 4211

make sure your url is not within the curly braces and then simply add the variable on

like so

/url/${imagename}.png

Upvotes: 2

Related Questions