Skip to content

Instantly share code, notes, and snippets.

@mir4a
Forked from azproduction/cl.js
Last active August 29, 2015 14:11
Show Gist options
  • Save mir4a/6ea85fe4ebd4d26f0b2f to your computer and use it in GitHub Desktop.
Save mir4a/6ea85fe4ebd4d26f0b2f to your computer and use it in GitHub Desktop.
console.log($LINE$);
// LINE = lineNumber()
console.log('$FUNCTION$@$FILE$:$LINE$');$END$
// FUNCTION = jsMethodName()
// FILE = fileNameWithoutExtension()
// LINE = lineNumber()
console.log(JSON.stringify($END$, null, 4));
define(function(require) {
$END$
});
function $END$() {
}
function () {
$END$
}
// FIXME: $VAR$ ($user$ at $time$, $date$)
@import 'global-variables.less';
.$BLOCK$ {
@block: ~'.$BLOCK$';
$END$
}
// Twitter Flight specific component template
define(function(require) {
require('css!./$COMPONENT_NAME$.css');
var template = require('text!./$COMPONENT_NAME$.html');
var defineComponent = require('defineComponent');
function Component() {
this.defaultAttrs({
});
this.after('initialize', function() {
this.$node.html(template);
$END$
});
}
return defineComponent(Component);
});
$MODULE$ = require('$MODULE$')
return $END$;
// TODO: $VAR$ ($user$ at $time$, $date$)
var that = this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment