Created
March 14, 2014 11:45
-
-
Save cullophid/9546243 to your computer and use it in GitHub Desktop.
sublime snippet for frontend model classes. Tab-trigger : inxite
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
<snippet> | |
<content><![CDATA[ | |
/** | |
* ${1:filename}.js | |
* Model class for ${1} | |
* @author ${3:author} | |
* @date ${4:dd}/${5:mm}/${6:yyyy} | |
*/ | |
/*jslint browser:true, nomen:true*/ | |
/*global app:true, \$:true, console: false*/ | |
app.model.${1} = (function (){ | |
'use strict'; | |
var instance = {}; | |
${7:// body} | |
return instance; | |
})(); | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>inxite</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment