Added Smarty templates from Ralf Eggert
authorkhartlage <khartlage>
Wed, 19 May 2004 21:25:06 +0000 (21:25 +0000)
committerkhartlage <khartlage>
Wed, 19 May 2004 21:25:06 +0000 (21:25 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/corext/template/default-templates.xml

index 2ab2143..020827a 100644 (file)
@@ -439,31 +439,7 @@ ${cursor}
   <template name="Silver" description="Silver (Color Code)" context="html" enabled="true">#C0C0C0</template>
   <template name="Teal" description="Teal (Color Code)" context="html" enabled="true">#008080</template>
   <template name="White" description="White (Color Code)" context="html" enabled="true">#FFFFFF</template>
-  <template name="Yelow" description="Yellow (Color Code)" context="html" enabled="true">#FFFF00</template>
-
-  <template name="{" description="{* *}(Smarty comment)" context="html" enabled="true">{* ${cursor} *}</template>
-  <template name="{capture" description="{capture }{/capture}(Smarty)" context="html" enabled="true">{capture name=${name}}
-  ${cursor}
-  {/capture}
-  </template>
-  <template name="{include" description="{include file=&quot;&quot;}(Smarty)" context="html" enabled="true">{include file="${filename}.tpl"}
-  ${cursor}
-  </template>
-  <template name="{if" description="{if }{/if}(Smarty)" context="html" enabled="true">{if ${cursor}}
-  {/if}
-  </template>
-  <template name="{if" description="{if }{else}{/if}(Smarty)" context="html" enabled="true">{if ${cursor}}
-  {else}
-  {/if}
-  </template>
-  <template name="{section" description="{section }{/section}(Smarty)" context="html" enabled="true">{section name=${nameAttr} loop=${loopAttr}}
-  ${cursor}
-  {/section}
-  </template>
-  <template name="{assign" description="{assign var= value= }(Smarty)" context="html" enabled="true">{assign var="${name}" values="${value}"}${cursor}</template>
-  <template name="{cycle" description="{cycle values= }(Smarty)" context="html" enabled="true">{cycle values="${values}"}${cursor}</template>
-  <template name="{counter" description="{counter start= skip= print= }(Smarty)" context="html" enabled="true">{counter start=${startValue} skip=${skipValue} print=false}${cursor}</template>
-  <template name="{counter" description="{counter}(Smarty)" context="html" enabled="true">{counter}${cursor}</template>
+  <template name="Yellow" description="Yellow (Color Code)" context="html" enabled="true">#FFFF00</template>
   <template name="&lt;br&gt;" description="&lt;br&gt;" context="html" enabled="true">&lt;br/&gt;${cursor}</template>
   <template name="&lt;div&gt;" description="div block with id" context="html" enabled="true">&lt;div id=&quot;${id}&quot;&gt;${cursor}&lt;/div&gt;</template>
   <template name="&lt;strong&gt;" description="&lt;strong&gt;" context="html" enabled="true">&lt;strong&gt;${cursor}&lt;/strong&gt;</template>
@@ -497,5 +473,101 @@ ${cursor}
   <template name="@uses" description="uses element description" context="phpdoc" enabled="true">@uses ${element} ${description}</template>
   <template name="@var" description="var datatype description" context="phpdoc" enabled="true">@var ${datatype} ${description}</template>
   <template name="@version" description="version versionstring" context="phpdoc" enabled="true">@version ${versionstring}</template>
-   
+  <template name="{" description="{* *} (Smarty comment)" context="html" enabled="true">{* ${cursor} *}</template>
+  <template name="{assign" description="{assign var= value= } (Smarty)" context="html" enabled="true">{assign var=&quot;${name}&quot; values=&quot;${value}&quot;}</template>
+  <template name="{capture" description="{capture }{/capture} (Smarty)" context="html" enabled="true">{capture name=${name}}
+${cursor}
+{/capture}</template>
+<template name="{config_load" description="{config_load} (Smarty)" context="html" enabled="true">{config_load file=&quot;${file}&quot;}</template>
+<template name="{config_load" description="{config_load} with section (Smarty)" context="html" enabled="true">{config_load file=&quot;${file}&quot; section=&quot;${section}&quot;}</template>
+<template name="{counter" description="{counter start= skip= print= } (Smarty)" context="html" enabled="true">{counter start=${start} skip=${skip} print=false}</template>
+<template name="{counter" description="{counter} (Smarty)" context="html" enabled="true">{counter}</template><template name="{cycle" description="{cycle values= } (Smarty)" context="html" enabled="true">{cycle values=&quot;${values}&quot;}</template>
+<template name="{eval" description="{eval var=#conf#} (Smarty)" context="html" enabled="true">{eval var=#${conf}#}</template>
+<template name="{eval" description="{eval var=$var} (smarty)" context="html" enabled="true">{eval var=$$${var}}</template>
+<template name="{fetch" description="{fetch file=} (Smarty)" context="html" enabled="true">{fetch file=&quot;${file}&quot;}</template>
+<template name="{foreach" description="{foreach}{/foreach} (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item}}
+${cursor}
+{/foreach}</template>
+<template name="{foreach" description="{foreach}{/foreach} with key (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}}
+${cursor}
+{/foreach}</template>
+<template name="{foreach" description="{foreach}{/foreach} with name (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}}
+${cursor}
+{/foreach}</template>
+<template name="{foreach" description="{foreach}{foreachelse}{/foreach} (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item}}
+${cursor}
+{foreachelse}
+${cursor}
+{/foreach}</template>
+<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with key (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item} key=${key}}
+${cursor}
+{foreachelse}
+${cursor}
+{/foreach}</template>
+<template name="{foreach" description="{foreach}{foreachelse}{/foreach} with name (Smarty)" context="html" enabled="true">{foreach from=$$${from} item=${item} name=${name}}
+${cursor}
+{foreachelse}
+${cursor}
+{/foreach}</template>
+<template name="{if" description="{if}{/if} (Smarty)" context="html" enabled="true">{if $$${var}}${cursor}{/if}</template><template name="{if" description="{if}{elseif}{/if} (Smarty)" context="html" enabled="true">{if $$${var}}
+${cursor}
+{elseif $$${var2}}
+
+{/if}</template><template name="{if" description="{if}{elseif}{else}{/if} (Smarty)" context="html" enabled="true">{if $$${var}}
+${cursor}
+{elseif $$${var2}}
+
+{else}
+
+{/if}</template>
+<template name="{if" description="{if}{else}{/if} (Smarty)" context="html" enabled="true">{if $$${var}}
+${cursor}
+{else}
+
+{/if}</template><template name="{include" description="{include file=&quot;&quot;} (Smarty)" context="html" enabled="true">{include file=&quot;${file}&quot;}</template>
+<template name="{include_php" description="{include_php file=&quot;&quot;} (Smarty)" context="html" enabled="true">{include_php file=&quot;${file}&quot;}</template>
+<template name="{ldelim}" description="{ldelim} (Smarty)" context="html" enabled="true">{ldelim}</template>
+<template name="{literal" description="{literal}{/literal} (Smarty)" context="html" enabled="true">{literal}
+${cursor}
+{/literal}</template>
+<template name="{rdelim}" description="{rdelim} (Smarty)" context="html" enabled="true">{rdelim}</template>
+<template name="{section" description="{section }{/section} (Smarty)" context="html" enabled="true">{section name=${name} loop=$$${loop}}
+${cursor}
+{/section}</template><template name="{section" description="{section}{sectionelse}{/section} (Smarty)" context="html" enabled="true">{section name=${name} loop=$$${loop}}
+${cursor}
+{sectionelse}
+
+{/section}</template><template name="{smarty.cookies.var}" description="{$smarty.cookies.var} (Smarty)" context="html" enabled="true">{$$smarty.cookies.${var}}</template>
+<template name="{smarty.env.var}" description="{$smarty.env.var} (Smarty)" context="html" enabled="true">{$$smarty.env.${var}}</template>
+<template name="{smarty.get.var}" description="{$smarty.get.var} (Smarty)" context="html" enabled="true">{$$smarty.get.${var}}</template>
+<template name="{smarty.now|date_format}" description="{$smarty.now|date_format} (Smarty)" context="html" enabled="true">{$$smarty.now|date_format:&quot;%Y-%m-%d %H:%M:%S&quot;}</template>
+<template name="{smarty.now}" description="{$smarty.now} (Smarty)" context="html" enabled="true">{$$smarty.now}</template>
+<template name="{smarty.post.var}" description="{$smarty.post.var} (Smarty)" context="html" enabled="true">{$$smarty.post.${var}}</template>
+<template name="{smarty.request.var}" description="{$smarty.request.var} (Smarty)" context="html" enabled="true">{$$smarty.request.${var}}</template>
+<template name="{smarty.server.var}" description="{$smarty.server.var} (Smarty)" context="html" enabled="true">{$$smarty.server.${var}}</template>
+<template name="{strip" description="{strip}{/strip} (Smarty)" context="html" enabled="true">{strip}
+${cursor}
+{/strip}</template>
+<template name="{var|capitalize}" description="{$var|capitalize} (Smarty)" context="html" enabled="true">{$$${var}|capitalize}</template>
+<template name="{var|count_characters}" description="{$var|count_characters} (Smarty)" context="html" enabled="true">{$$${var}|count_characters}</template>
+<template name="{var|count_paragraphs}" description="{$var|count_paragraphs} (Smarty)" context="html" enabled="true">{$$${var}|count_paragraphs}</template>
+<template name="{var|count_sentences}" description="{$var|count_sentences} (Smarty)" context="html" enabled="true">{$$${var}|count_sentences}</template>
+<template name="{var|count_words}" description="{$var|count_words} (Smarty)" context="html" enabled="true">{$$${var}|count_words}</template>
+<template name="{var|date_format}" description="{$var|date_format} (Smarty)" context="html" enabled="true">{$$${var}|date_format:&quot;%Y-%m-%d %H:%M:%S&quot;}</template>
+<template name="{var|default}" description="{$var|default} (Smarty)" context="html" enabled="true">{$$${var}|default:&quot;${text}&quot;}</template>
+<template name="{var|escape:value}" description="{$var|escape:value} (Smarty)" context="html" enabled="true">{$$${var}|escape:&quot;${value}&quot;}</template>
+<template name="{var|escape}" description="{$var|escape} (Smarty)" context="html" enabled="true">{$$${var}|escape}</template>
+<template name="{var|indent:nr}" description="{$var|indent:nr} (Smarty)" context="html" enabled="true">{$$${var}|indent:${nr}}</template>
+<template name="{var|indent}" description="{$var|indent} (Smarty)" context="html" enabled="true">{$$${var}|indent}</template>
+<template name="{var|lower}" description="{$var|lower} (Smarty)" context="html" enabled="true">{$$${var}|lower}</template>
+<template name="{var|nl2br}" description="{$var|nl2br} (Smarty)" context="html" enabled="true">{$$${var}|nl2br}</template>
+<template name="{var|regex_replace}" description="{$var|regex_replace} (Smarty)" context="html" enabled="true">{$$${var}|regex_replace:&quot;${regex}&quot;:&quot;${replace}&quot;}</template>
+<template name="{var|replace}" description="{$var|replace} (Smarty)" context="html" enabled="true">{$$${var}|replace:&quot;${find}&quot;:&quot;${replace}&quot;}</template>
+<template name="{var|spacify}" description="{$var|spacify} (Smarty)" context="html" enabled="true">{$$${var}|spacify}</template>
+<template name="{var|string_format}" description="{$var|string_format} (Smarty)" context="html" enabled="true">{$$${var}|string_format:&quot;%.2f&quot;}</template>
+<template name="{var|strip_tags}" description="{$var|strip_tags} (Smarty)" context="html" enabled="true">{$$${var}|strip_tags}</template>
+<template name="{var|strip}" description="{$var|strip} (Smarty)" context="html" enabled="true">{$$${var}|strip}</template>
+<template name="{var|truncate}" description="{$var|truncate} (Smarty)" context="html" enabled="true">{$$${var}|truncate:${nr}}</template>
+<template name="{var|upper}" description="{$var|upper} (Smarty)" context="html" enabled="true">{$$${var}|upper}</template>
+<template name="{var|wordwrap}" description="{$var|wordwrap} (Smarty)" context="html" enabled="true">{$$${var}|wordwrap:${nr}:&quot;${sign}&quot;}</template>
 </templates>
\ No newline at end of file