Skip to content

Commit

Permalink
Adding a couple of packages and a theme
Browse files Browse the repository at this point in the history
  • Loading branch information
indynz committed Aug 14, 2011
1 parent a2c3a26 commit b5c54ce
Show file tree
Hide file tree
Showing 19 changed files with 661 additions and 66 deletions.
94 changes: 94 additions & 0 deletions ColdFusion-Indy/application-cfc.tmSnippet
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string><![CDATA[<cfcomponent output="false">
<!--- Application name, should be unique --->
<cfset this.name = "ApplicationName">
<!--- How long application vars persist --->
<cfset this.applicationTimeout = createTimeSpan(0,2,0,0)>
<!--- Should client vars be enabled? --->
<cfset this.clientManagement = false>
<!--- Where should we store them, if enable? --->
<cfset this.clientStorage = "registry">
<!--- Where should cflogin stuff persist --->
<cfset this.loginStorage = "session">
<!--- Should we even use sessions? --->
<cfset this.sessionManagement = true>
<!--- How long do session vars persist? --->
<cfset this.sessionTimeout = createTimeSpan(0,0,20,0)>
<!--- Should we set cookies on the browser? --->
<cfset this.setClientCookies = true>
<!--- should cookies be domain specific, ie, *.foo.com or www.foo.com --->
<cfset this.setDomainCookies = false>
<!--- should we try to block 'bad' input from users --->
<cfset this.scriptProtect = "none">
<!--- should we secure our JSON calls? --->
<cfset this.secureJSON = false>
<!--- Should we use a prefix in front of JSON strings? --->
<cfset this.secureJSONPrefix = "">
<!--- Used to help CF work with missing files and dir indexes --->
<cfset this.welcomeFileList = "">
<!--- define custom coldfusion mappings. Keys are mapping names, values are full paths --->
<cfset this.mappings = structNew()>
<!--- define a list of custom tag paths. --->
<cfset this.customtagpaths = "">
<!--- Run when application starts up --->
<cffunction name="onApplicationStart" returnType="boolean" output="false">
<cfreturn true>
</cffunction>
<!--- Run when application stops --->
<cffunction name="onApplicationEnd" returnType="void" output="false">
<cfargument name="applicationScope" required="true">
</cffunction>
<!--- Fired when user requests a CFM that doesn't exist. --->
<cffunction name="onMissingTemplate" returnType="boolean" output="false">
<cfargument name="targetpage" required="true" type="string">
<cfreturn true>
</cffunction>
<!--- Run before the request is processed --->
<cffunction name="onRequestStart" returnType="boolean" output="false">
<cfargument name="thePage" type="string" required="true">
<cfreturn true>
</cffunction>
<!--- Runs at end of request --->
<cffunction name="onRequestEnd" returnType="void" output="false">
<cfargument name="thePage" type="string" required="true">
</cffunction>
<!--- Runs on error --->
<cffunction name="onError" returnType="void" output="false">
<cfargument name="exception" required="true">
<cfargument name="eventname" type="string" required="true">
<cfdump var="#arguments#"><cfabort>
</cffunction>
<!--- Runs when your session starts --->
<cffunction name="onSessionStart" returnType="void" output="false">
</cffunction>
<!--- Runs when session ends --->
<cffunction name="onSessionEnd" returnType="void" output="false">
<cfargument name="sessionScope" type="struct" required="true">
<cfargument name="appScope" type="struct" required="false">
</cffunction>
</cfcomponent>
]]></string>
<key>name</key>
<string>application</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>app</string>
<key>uuid</key>
<string>1E20A19E-5D28-4C27-9F7D-2B9A18833775</string>
</dict>
</plist>
15 changes: 15 additions & 0 deletions ColdFusion-Indy/cfdump - attributes.tmSnippet
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;cfdump var="#request.attributes#"&gt;$0</string>
<key>name</key>
<string>cfdump request.attributes</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>duat</string>
<key>uuid</key>
<string>f6f27572-d7a6-4aef-82c1-d6dfeb143411</string>
</dict>
</plist>
17 changes: 17 additions & 0 deletions ColdFusion-Indy/cfloop-array-railo.tmSnippet
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;cfloop array="#${1:aReturn}#" index="${2:i}"&gt;
$0
&lt;/cfloop&gt;</string>
<key>name</key>
<string>cfloop - array - railo</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>cfloop</string>
<key>uuid</key>
<string>e7d72dd1-8b45-47fa-8fe6-a778acdc4712</string>
</dict>
</plist>
17 changes: 17 additions & 0 deletions ColdFusion-Indy/cfloop-collection.tmSnippet
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;cfloop collection="#$1#" item="${2:i}"&gt;
$0
&lt;/cfloop&gt;</string>
<key>name</key>
<string>cfloop - collection</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>cfloop</string>
<key>uuid</key>
<string>z7d72dd1-8b45-47fa-8fe6-a778acdc4714</string>
</dict>
</plist>
17 changes: 17 additions & 0 deletions ColdFusion-Indy/cfloop-from.tmSnippet
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;cfloop from="$1" to="$2" index="${3:i}"&gt;
$0
&lt;/cfloop&gt;</string>
<key>name</key>
<string>cfloop - from</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>cfloop</string>
<key>uuid</key>
<string>e7d72dd1-8b45-47fa-8fe6-a778acdc4712</string>
</dict>
</plist>
17 changes: 17 additions & 0 deletions ColdFusion-Indy/cfloop-struct.tmSnippet
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<plist version="1.0">
<dict>
<key>content</key>
<string>&lt;cfloop collection="#${1:}#" item="${3:i}"&gt;
$0
&lt;/cfloop&gt;</string>
<key>name</key>
<string>cfloop - struct</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>cfloop</string>
<key>uuid</key>
<string>e7d72dd1-8b45-47fa-8fe6-a778acdc4712</string>
</dict>
</plist>
16 changes: 16 additions & 0 deletions ColdFusion-Indy/shado_obj_factory.tmSnippet
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>content</key>
<string>application.shado_obj_factory.get("${1:component_path}")$0</string>
<key>name</key>
<string>shado_obj_factory</string>
<key>scope</key>
<string>text.html.cfm</string>
<key>tabTrigger</key>
<string>fac</string>
<key>uuid</key>
<string>4EBD29A1-B88C-46D6-B056-A817BD7B5CB7</string>
</dict>
</plist>

0 comments on commit b5c54ce

Please sign in to comment.