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.
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: http://pastebin.com/nfM1S1D8
Its working as it should... BUT
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:(((
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}
Believe me guys, I tried it with the
$smarty->left_delimiter = '<!--{';
$smarty->right_delimiter = '}-->';
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!
So you see I must be too stupid to solve this here but I hope somebody else has an answer for this.
PS: structure and smarty code: http://img560.imageshack.us/f/smarty.png/
@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."
Does not apply to me as I can open after the parsing the js files