Last active
November 15, 2018 21:02
-
-
Save davidhellmann/a24dc89258c1e10ee901 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="##" value="{# $END$ #}" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="%%" value="{% $END$ %}" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="assets" value="{% for image in craft.assets .source('$SOURCE$') .kind('image') .limit(10) }) %} <img src="{{ image.url('thumb') }}" width="{{ image.width }}" height="{{ image.height }}" alt="{{ image.title }}"> {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SOURCE" expression="" defaultValue=""source"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="assetsp" value="{% set assets = craft.assets.find({ source: '$SOURCE$', kind: 'image', limit: 10 }) %} {% for image in assets %} <img src="{{ image.url('thumb') }}" width="{{ image.width }}" height="{{ image.height }}" alt="{{ image.title }}"> {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SOURCE" expression="" defaultValue=""source"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="block" value="{% block $NAME$ %} $END$ {% endblock %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="blockb" value="{% block $NAME$ %} $END$ {% endblock %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="categories" value="<ul> {% nav category in craft.categories .group('$CATGROUPHANDLE$',') .limit(10) %} <li> <a href="{{ category.url }}">{{ category.title }}</a> {% ifchildren %} <ul> {% children %} </ul> {% endifchildren %} </li> {% endnav %} </ul> $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="CATGROUPHANDLE" expression="" defaultValue=""categoryGroupHandle"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="categoriesp" value="{% set categories = craft.categories.find({ group: '$CATGROUPHANDLE$', limit: '10' ) %} <ul> {% nav category in categories %} <li> <a href="{{ category.url }}">{{ category.title }}</a> {% ifchildren %} <ul> {% children %} </ul> {% endifchildren %} </li> {% endnav %} </ul> $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="CATGROUPHANDLE" expression="" defaultValue=""categoryGroupHandle"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="ciel" value="ceil($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="csrf" value="{{ getCsrfInput() }} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="else" value="{% else %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="endblock" value="{% endblock %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="endfilter" value="{% endfilter %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="endfor" value="{% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="endif" value="{% endif %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="endset" value="{% endset %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="entries" value="{% set entries = craft.entries.find({ section: '$SECTIONNAME$', limit: '10' }) %} {% for entry in entries %} <a href="{{ entry.url }}">{{ entry.title }}</a> {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SECTIONNAME" expression="" defaultValue=""sectionHandle"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="entriesp" value="{% set entries = craft.entries.find({ section: '$SECTIONNAME$', limit: '10' }) %} {% for entry in entries %} <a href="{{ entry.url }}">{{ entry.title }}</a> {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SECTIONNAME" expression="" defaultValue=""sectionHandle"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="exit" value="{% exit 404 %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="extends" value="{% extends '$TEMPLATE$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="TEMPLATE" expression="" defaultValue=""template"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="feed" value="{% set feedUrl = "$FEEDURL$" %} {% set limit = 10 %} {% set items = craft.feeds.getFeedItems(feedUrl, limit) %} {% for item in items %} <article> <h3><a href="{{ item.permalink }}">{{ item.title }}</a></h3> <p class="author">{{ item.authors[0].name }}</p> <p class="date">{{ item.date }}</p> {{ item.summary }} </article> {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="FEEDURL" expression="" defaultValue=""http://url.com/feed"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="filter" value="{% filter $NAME$ %} $END$ {% endfilter %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="NAME" expression="" defaultValue=""name"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="floor" value="floor($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="for" value="{% for item in items %} $END$ {% endfor %}" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="fore" value="{% for item in items %} $END$ {% else %} {% endfor %}" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="if" value="{% if $CONDITION$ %} $END$ {% endif %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONDITION" expression="" defaultValue=""condition"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="ifb" value="{% if $CONDITION$ %} $END$ {% endif %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONDITION" expression="" defaultValue=""condition"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="ife" value="{% if $CONDITION$ %} $END$ {% else %} {% endif %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="CONDITION" expression="" defaultValue=""condition"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="inc" value="{% include '$TEMPLATE$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="TEMPLATE" expression="" defaultValue=""template"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="includecss" value="{% includeCssFile siteUrl ~ '$PATH$/$FILE$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATH" expression="" defaultValue=""path"" alwaysStopAt="true" /> | |
<variable name="FILE" expression="" defaultValue=""file"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="includejs" value="{% includeJsFile siteUrl ~ '$PATH$/$FILE$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATH" expression="" defaultValue=""path"" alwaysStopAt="true" /> | |
<variable name="FILE" expression="" defaultValue=""file"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="incp" value="{% include '$TEMPLATE$' with { $KEY$: '$VALUE$' }} %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="TEMPLATE" expression="" defaultValue=""template"" alwaysStopAt="true" /> | |
<variable name="KEY" expression="" defaultValue=""key"" alwaysStopAt="true" /> | |
<variable name="VALUE" expression="" defaultValue=""value"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="matrix" value="{% for block in entry.$MATRIXFIELDHANDLE$ %} {% switch block.type %} {# start: Block Title #} {% case '$BLOCKHANDLE1$' %} {{ block.$FIELDHANDLE1$ }} {# start: Block Title #} {% case '$BLOCKHANDLE2$' %} {{ block.$FIELDHANDLE2$ }} {% endswitch %} {% endfor %} $END$ " toReformat="false" toShortenFQNames="true"> | |
<variable name="MATRIXFIELDHANDLE" expression="" defaultValue=""matrixFieldHandle"" alwaysStopAt="true" /> | |
<variable name="BLOCKHANDLE1" expression="" defaultValue=""blockHandle 1"" alwaysStopAt="true" /> | |
<variable name="FIELDHANDLE1" expression="" defaultValue=""fieldHandle 1"" alwaysStopAt="true" /> | |
<variable name="BLOCKHANDLE2" expression="" defaultValue=""blockHandle 2"" alwaysStopAt="true" /> | |
<variable name="FIELDHANDLE2" expression="" defaultValue=""fieldHandle 2"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="max" value="max($END$, )" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="min" value="min($END$, )" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="paginate" value="{% paginate craft.entries.section('$SECTIONHANDLE$').limit(10) as entries %} {% for entry in entries %} <article> <h1>{{ entry.title }}</h1> {{ entry.body }} </article> {% endfor %} {% if paginate.prevUrl %} <a href="{{ paginate.prevUrl }}">Previous Page</a> {% endif %} {% if paginate.nextUrl %} <a href="{{ paginate.nextUrl }}">Next Page</a> {% endif %} {% endpaginate %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SECTIONHANDLE" expression="" defaultValue=""sectionHandle"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="paginateb" value="{# PAGINATION For this pagination to work properly, we need to be sure to set the paginateBase variable in the template we are including the pagination in. {% set paginateBase = "/blog/p" %} #} {% if paginate.totalPages > 1 %} <ul> {% if paginate.currentPage != "1" %} <li><a href="{{ paginateBase ~ '1' }}">First Page</a></li> {% endif %} {% if paginate.prevUrl %} <li><a href="{{ paginate.prevUrl }}">Previous Page</a></li> {% endif %} {% for pageNumber in 1..paginate.totalPages %} <li {% if paginate.currentPage == pageNumber %}class="active-page"{% endif %}> <a href="{{ paginateBase ~ pageNumber }}">{{ pageNumber }}</a> </li> {% endfor %} {% if paginate.nextUrl %} <li><a href="{{ paginate.nextUrl }}">Next Page</a></li> {% endif %} {% if paginate.currentPage != paginate.total %} <li><a href="{{ paginateBase ~ paginate.total }}">Last Page</a></li> {% endif %} </ul> {% endif %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="redirect" value="{% redirect '$PATHorURL$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATHorURL" expression="" defaultValue=""templatePath or URL"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requestParam" value="craft.request.getParam($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requestPost" value="craft.request.getPost($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requestQuery" value="craft.request.getQuery($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requestSegment" value="craft.request.getSegment($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requirelogin" value="{% requireLogin %} $END$" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="requirepermission" value="{% requirePermission '$PERMISSION$' %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PERMISSION" expression="" defaultValue=""permission"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="round" value="round($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="set" value="{% set $VAR$ = $VALUE$ %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="" defaultValue=""var"" alwaysStopAt="true" /> | |
<variable name="VALUE" expression="" defaultValue=""value"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="setb" value="{% set $VAR$ %} $END$ {% endset %}" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="" defaultValue=""var"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="shuffle" value="shuffle($END$)" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="switch" value="{% switch $VAR$ %} {% case "$VALUE1$" %} {% case "$VALUE2$" %} {% default %} {% endswitch %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="VAR" expression="" defaultValue=""var"" alwaysStopAt="true" /> | |
<variable name="VALUE1" expression="" defaultValue=""value 1"" alwaysStopAt="true" /> | |
<variable name="VALUE2" expression="" defaultValue=""value 2"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="tags" value="{% set tags = craft.tags.find({ set: '$SETNAME$' }) %} <ul> {% for tag in tags %} <li>{{ tag }}</a></li> {% endfor %} </ul> $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SETNAME" expression="" defaultValue=""setName"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="tagsp" value="{% set tags = craft.tags.find({ set: '$SETNAME$' }) %} <ul> {% for tag in tags %} <li>{{ tag }}</a></li> {% endfor %} </ul> $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="SETNAME" expression="" defaultValue=""setName"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="url" value="url('$PATH$') $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATH" expression="" defaultValue=""path"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="urla" value="url('$PATH$', {foo:'1', bar:'2'}, 'http', false) $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="PATH" expression="" defaultValue=""path"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="users" value="{% for account in craft.users .group('$GROUPNAME$') %} {{ account.firstName }} {{ account.lastName }} {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="GROUPNAME" expression="" defaultValue=""groupName"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="usersp" value="{% set accounts = craft.users.find({ group: '$GROUPNAME$' }) %} {% for account in accounts %} {{ account.firstName }} {{ account.lastName }} {% endfor %} $END$" toReformat="false" toShortenFQNames="true"> | |
<variable name="GROUPNAME" expression="" defaultValue=""groupName"" alwaysStopAt="true" /> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> | |
<template name="}}" value="{{ $END$ }}" toReformat="false" toShortenFQNames="true"> | |
<context> | |
<option name="HTML_TEXT" value="true" /> | |
<option name="HTML" value="true" /> | |
<option name="Twig" value="true" /> | |
</context> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to install:
Copy The Code > PHPStorm settings > live templates > add a new group > right click > paste
Or move the XML file to either one of these paths: https://www.jetbrains.com/phpstorm/help/live-templates.html