Adding Javascript To Smarty Templates

//Adding Javascript To Smarty Templates

Adding Javascript To Smarty Templates

I was figuring out how to include Javascript in Smarty templates this afternoon, because you can’t include them directly. After digging around a bit, I realised that all you had to do was to include the Javascript code within {literal}{/literal} tags, like this:



And once that’s done, you can use Javascript in your Smarty template. Problem solved! 🙂

Similar Posts:

By |2009-09-23T03:37:25+00:00January 2nd, 2008|Programming & Code|0 Comments

About the Author:

Alvin Poh lives in Singapore, and is interested in marketing, techy stuff, and likes to just figure out how the two can work with each other. He can also be found on Google+.

Leave A Comment