Skip to content

Instantly share code, notes, and snippets.

@docluv
Created May 15, 2014 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save docluv/2797a93eb6333346203a to your computer and use it in GitHub Desktop.
Save docluv/2797a93eb6333346203a to your computer and use it in GitHub Desktop.
MUSTACHE Template VS Code Snippet
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>MUSTACHE Template</Title>
<Author>Love2Dev</Author>
<Shortcut>musttemp</Shortcut>
<AlternativeShortcuts>
<Shortcut Value="musttemp">must:temp</Shortcut>
</AlternativeShortcuts>
<Description>Markup snippet for a MUSTACHE Template</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<FileExtensions>
aspx;master;ascx;cshtml;html;htm
</FileExtensions>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>templatename</ID>
<ToolTip>The name of the template.</ToolTip>
<Default>templatename</Default>
</Literal>
</Declarations>
<Code Language="html">
<![CDATA[
<script id="$templatename$" type="text/x-mustache-template">
{{#arrayname}}
{{field}}
{{/arrayname}}
</script>
]]></Code>
</Snippet>
</CodeSnippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment