dracoblue.net

Escaping { and } or javascript in smarty

When using php's smarty you sometimes want to use { and } (curly braces) in .tpl files.

For such things you can use the {literal}{what you want to do}<!-- {} -->{/literal} statement.

Detailed explanation at the

smarty documentation page.

In open source, php, smarty by
@ 09 Jul 2007, Comments at Reddit & Hackernews

Give something back

Were my blog posts useful to you? If you want to give back, support one of these charities, too!

Report hate in social media Campact e.V. With our technology and your help, we protect the oceans from plastic waste. Gesellschaft fur Freiheitsrechte e. V. The civil eye in the mediterranean

Recent Dev-Articles

Read recently

Recent Files

About