Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 349 Bytes

smarty.md

File metadata and controls

21 lines (14 loc) · 349 Bytes

Smarty

Assign the snippet value to a variable

{s name="NameFromSnippet" assign="tplVariable"}Default Value{/s}
{$tplVariable|replace:'Test':'Lol'}

Read plugin config values

{config name="myVar" namespace="MYPLUGINNAME"}

Check existence of Template file

{if "frontend/foo.tpl"|template_exists}