So, I want to be able to pass some variables from php to js. It's likely that I'm not really thinking about this the right way, but is there a way to do it?
I thought I'd have to do it from within the tpl file... So, I have my script surrounded by {literal} {/literal}, but within the script, I want to have:
var thisvariable = {$somevariable}
Which, doesn't work... Is there another, more obvious way to do this?