literal

Literal tags allow a block of data to be taken literally, not being interpreted by the Smarty engine. This is handy for things like javascript sections, where there maybe curly braces and such things that would confuse the template parser. Anything within {literal}{/literal} tags is not interpreted, but displayed as-is.

Example 7-13. literal tags

{literal}

	<script language=javascript>



        	<!--

                	function isblank(field) {

                	if (field.value == '') 

                        	{ return false; }

                	else

                        	{

                        	document.loginform.submit();

                        	return true;

                        	}

                	}

        	// -->



	</script>

{/literal}