Note that there are some explanatory texts on larger screens.

plurals
  1. POsmarty should not parse javascript file
    primarykey
    data
    text
    <p>through stackoverlfow and google I found many things for this and many complaints and basically everything. hence I must be totally stupid to achieve this but I want my smarty not to parse my javascript.</p> <p>Somehow, it is doing that. As in the documentation stated: {literal}{/literal} escapes blocks from being parsed by js. However, that is working fine. For instance this template: <a href="http://pastebin.com/nfM1S1D8" rel="nofollow">http://pastebin.com/nfM1S1D8</a></p> <p>Its working as it should... BUT </p> <p></p> <p>what ever is written in those things is totally parsed and ignored from top to bottom. I could write 100 times {literal} in that file and it would not give a rats ass about that. And its not just that. Also my jquery142min and my jqueryui1812min file are destroyed by this smarty thing. I cannot use any jquery stuff anymore:(((</p> <p>Could somebody please tell me how I get smarty not to care about a whole file? I am not going to paste the jqueryUI file just to show that it looks like this: {literal} jquery ui code {/literal}</p> <p>Believe me guys, I tried it with the </p> <pre><code> $smarty-&gt;left_delimiter = '&lt;!--{'; $smarty-&gt;right_delimiter = '}--&gt;'; </code></pre> <p>But that does not work as well - and YES I did delete the cache that doesnt exsist as I am not caching and YES I did delete the compiled views every single time!</p> <p>So you see I must be too stupid to solve this here but I hope somebody else has an answer for this.</p> <p>PS: structure and smarty code: <a href="http://img560.imageshack.us/f/smarty.png/" rel="nofollow">http://img560.imageshack.us/f/smarty.png/</a></p> <p>@edit: "The js file will be called with reference to the PHP file that calls the template . The path will not be according to where the smart y template is but according to where the calling php file is."</p> <p>Does not apply to me as I can open after the parsing the js files</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload