Sublime Forum

Snippet not working in *.tpl (smarty) files

#1

I’m building a plugin for CMS Made Simple. It’s a collection of snippets and auto completions related to the CMS. Everything works as expected when working with a php file but I can’t seem to get my snippets to work within *.tpl(smarty) files. Below I’ve included an example of a snippet.

<snippet>
	<content><![CDATA[
{foreach from=${1:\$items} key=${2:key} item=${3:entry} name=${4:name}}
	{${5:\$entry}->${6:item}}
	$0
{/foreach}
]]></content>
	<description>smarty foreach loop</description>
	<tabTrigger>smarty_foreach</tabTrigger>
</snippet>

Any help on this would be greatly appreciated.

Thanks,
Ben

0 Likes