Smarty Literal Tag

Using PHP {literal}{/literal} Tags

Literal tags which use the syntax {literal}{/literal} can be used to take the code literally within the '.tpl' file, thus, not interpreting it. Two common places where you would use the literal tags are with CSS and Javascript.


<style type="text/css">
body, label {font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;


In this example, the literal tags go around the Javascript.


$(document).ready(function() {
$( "#email" ).click(function() {