Smarty crashing with JavaScript Curly Braces
If you ever need to use curly braces in a Smarty template use the following code:
{literal}
<script>// <![CDATA[
<!--
function getPrompt() {
// js function here
}
//-->
</script>
{/literal}
<script>// <![CDATA[
<!--
function getPrompt() {
// js function here
}
//-->
</script>
{/literal}
… or …
<script language="javascript">
<!--
function getPrompt() {ldelim}
// js function here
{rdelim}
//-->
</script>
<!--
function getPrompt() {ldelim}
// js function here
{rdelim}
//-->
</script>