velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dizzi <>
Subject some escape character
Date Fri, 04 Aug 2006 09:13:11 GMT
It has probably pretty simple solution but i cant figure it anyway :)

#macro(button $name $url)
	<div class="button"><a href="$url">$name</a></div>

#set ($AJAXurl = $link.setAction("ShowRegionAddForm"))
#button("ADD" "javascript:retrieveURL($AJAXurl)")<br>

is renedered like "javascript:retrieveURL(/tors/"

I need "javascript:retrieveURL("/tors/")"

How can i tell velocity that quote in macro parameter is part of string  
and not argument

#button("ADD" "javascript:retrieveURL('$AJAXurl')")<br>

this works nice, but what if i need " and not ' :)

thx dizzi

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

View raw message