literal

1.0 1.1 1.2 1.3

Outputs the entire block contents without parsing them as template code.

<?php
literal()

This block MUST be closed explicitly using {/literal}, doing it like {/} or closing it’s parent block will not work

Examples

Example #1

index.tpl
{$var=3}
{literal}
 {$var} {* Comments and the strip plugin are an exception to the literal rule as they still behave as expected even within a literal block *}
{/literal}
{$var}

The above example will output:

{$var} 
3