{* Smarty *}

<script type="text/javascript">
   // <![CDATA[
   window.smarty = { };
   {if $assigned_vars != null}
      {foreach $assigned_vars as $var}
         {$tmp = json_encode($var.value, JSON_PARTIAL_OUTPUT_ON_ERROR)}
         window.smarty['{$var@key|escape:'javascript'}'] = {if $tmp}{$tmp nofilter}{else}{json_encode(json_last_error_msg()) nofilter}{/if};
      {/foreach}
   {/if}
   console.dir(window.smarty);
   // ]]>
</script>

