Skip to content

Instantly share code, notes, and snippets.

@guitrspaz
Last active August 15, 2017 11:41
Show Gist options
  • Save guitrspaz/ed3ce0758031be3faa69e81d722c7807 to your computer and use it in GitHub Desktop.
Save guitrspaz/ed3ce0758031be3faa69e81d722c7807 to your computer and use it in GitHub Desktop.
Creates a blank cfscript component
<snippet>
<content><![CDATA[/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}
* @hint: ${1}
* @author: $TM_FULLNAME ($TM_EMAIL)
* @copyright: $TM_ORGANIZATION_NAME
* @created: ${2}
* @modified: ${2}
*/
component
displayname="${TM_FILENAME/(.+)\..+|.*/$1/:name}"
output="false"
accessors="true"
extends=${3:com.distance.base.bean}
{
/**
* @name: ${TM_FILENAME/(.+)\..+|.*/$1/:name}.init
* @hint: I create an instance of ${TM_FILENAME/(.+)\..+|.*/$1/:name}
* @returns: ${TM_FILEPATH/\/Library\/WebServer\/Documents\/CoursePlus\/|\G([^\/]+)\/(?=[^\/].*([.]))|\G([^\/]+)\/[^\/]+$|(.+)\..+|.*/$1$2$3$4/g/}
* @date: ${2}
* @author: $TM_FULLNAME ($TM_EMAIL)
*/
public ${TM_FILEPATH/\/Library\/WebServer\/Documents\/CoursePlus\/|\G([^\/]+)\/(?=[^\/].*([.]))|\G([^\/]+)\/[^\/]+$|(.+)\..+|.*/$1$2$3$4/g/} function init(
${5}
){
super.${4:configure}(argumentCollection=arguments);
${6}
return this;
}
${7}
}]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>component</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment