![]() |
Anyone here know if you can use .js in a Smarty Template?
See subject. :helpme
Thanks. |
google told me yes
|
It works like a charm (I'm doing it).
|
Quote:
|
Quote:
|
Quote:
I've set mine to {{ and }} http://smarty.php.net/manual/en/language.escaping.php |
If you use { you do not need to change the delimiters.
You can simply place {literal} and {/literal} around the javascript and it will not parse what is between them for smarty. |
Quote:
|
Quote:
|
Quote:
|
Quote:
I used to use {literal} and {/literal} before, but it was a pain in the butt because I have a lot of templates (I'm using it in my LL scripts) and I had a tendency to forget about it between the times I needed it. So for me it was a lot easier to change the delimiters. Never needed to worry about it after that. |
All times are GMT -7. The time now is 05:41 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123