title: Giving Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template
body: <p>This is my code and it is giving error </p>
  
  <pre><code>Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error 
        in template "C:\wamp\www\pangu\application\views\front\employer\lesson\topic_popup.tpl" on line 89
  "$.post(&amp;quot;{site_url()}(&amp;quot;employer/library/show_topic&amp;quot;);&amp;quot;,{&amp;quot;id&amp;quot;:id,&amp;quot;sts&amp;quot;:sts},function(responseText){" - Unexpected ":", expected one of: "}" , " " , ATTR' 
        in C:\wamp\www\pangu\application\third_party\Smarty-3.1.13\libs\sysplugins\smarty_internal_templatecompilerbase.php on line 665 
  </code></pre>
  
  <p>i am new in smarty</p>
  
  <pre><code>   &lt;script&gt;
         function show_topic(id,sts){
             if($('#ch_'+id).is(":checked")) {
                sts =1;
             }
             else{
                 sts = 0;
             }
             $.post("{site_url()}("employer/library/show_topic");"{"id":id,"sts":sts},function(responseText){});}
     &lt;/script&gt;
  </code></pre>