Created
May 15, 2014 12:25
-
-
Save docluv/2797a93eb6333346203a to your computer and use it in GitHub Desktop.
MUSTACHE Template VS Code Snippet
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
<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