This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorials:using_javascript_in_smarty_templates:start [2011/11/28 21:08] matt |
tutorials:using_javascript_in_smarty_templates:start [2014/09/25 16:55] (current) |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| There are a couple of ways around this. You can either replace all of the left-curly-braces in your Javascript with the {ldelim} tag, or you can simply wrap the entire javascript code in **{literal}{/ | There are a couple of ways around this. You can either replace all of the left-curly-braces in your Javascript with the {ldelim} tag, or you can simply wrap the entire javascript code in **{literal}{/ | ||
| - | <tip c n> | + | <tip c n> |
| We'll show the oft-offending piece of Google Analytics code here, by way of example. Google generally supplies the code like this: | We'll show the oft-offending piece of Google Analytics code here, by way of example. Google generally supplies the code like this: | ||