Smarty - Javascript & CSS

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Can we contain Javascript and CSS codings in .tpl?

My tpl file contains Javascript and CSS, but I got syntax error:
unrecognized tag

Anyway to make it work? because really need those javascript and css in

Thanks much!

Re: Smarty - Javascript & CSS

You must wrap your code between labels

function foo() {
   // my javascript code

Site Timeline