Skip to content

Instantly share code, notes, and snippets.

@cullophid
Created March 14, 2014 11:45
Show Gist options
  • Save cullophid/9546243 to your computer and use it in GitHub Desktop.
Save cullophid/9546243 to your computer and use it in GitHub Desktop.
sublime snippet for frontend model classes. Tab-trigger : inxite
<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