Using Javascript codes in Smarty template files

Using Smarty fist problem I encountered is how to use JavaScript inside the template files! There is this magic keyword literal which will refrain from parsing the code within! {literal} <script type="text/javascript"> function isblank(field) { if (field.value == ”) { return false; } else { document.loginform.submit(); return true; } } </script> {/literal}

Templating with Smarty

I’m redoing sri-lankan.net from the sketch and gonna use smarty template engine for easy templating! So-far the moving is fine, as you see I’ve broken some existing links I’ll try to restore them as soon as possible!