diff --git a/changelog.md b/changelog.md
index 8dde4d4..6a34c58 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,9 @@
# Changelog
+## v3.1.0
+
+- Updated all skeletons to more ColdBox 7 goodness
+
## v3.0.0
- Updates for ColdBox 7
diff --git a/messages.json b/messages.json
index 5a37858..3dd9374 100644
--- a/messages.json
+++ b/messages.json
@@ -5,5 +5,6 @@
"2.4.0": "changelog.md",
"2.6.0": "changelog.md",
"2.7.0": "changelog.md",
- "3.0.0": "changelog.md"
+ "3.0.0": "changelog.md",
+ "3.1.0": "changelog.md"
}
diff --git a/readme.md b/readme.md
index a92f19e..0da8b20 100644
--- a/readme.md
+++ b/readme.md
@@ -28,6 +28,7 @@ Code completion for all major ColdBox + TestBox functions and scopes:
### Code Skeleton Snippets
+- `apiResourceHandler` : Creates a ColdBox API Resource Handler
- `cachebox-config ➝` : Creates a new CacheBox.cfc configuration file
- `config ➝` : Creates a new ColdBox.cfc configuration file
- `cfc ➝` : Creates a new ColdFusion script CFC
@@ -42,6 +43,7 @@ Code completion for all major ColdBox + TestBox functions and scopes:
- `property ➝` : Creates a new ColdFusion script property
- `routes ➝` : Creates a new routing file
- `resthandler ➝` : Creates a ColdBox Rest Handler
+- `resourcehandler` : Creates a ColdBox Resource Handler
- `unit ➝` : Creates a TestBox TDD xUnit Bundle
### Handler Code Snippets
@@ -100,7 +102,6 @@ Code completion for all major ColdBox + TestBox functions and scopes:
### ColdBox Testing Snippets
-- `handlerTest ➝` : Creates a ColdBox Event Handler test case
- `integration ➝` : Creates a top down integration BDD test case
- `interceptorTest ➝` : Creates an Interceptor test case
- `modelTest ➝` : Creates a model test case
diff --git a/skeletons/CacheBox.sublime-snippet b/skeletons/CacheBox.sublime-snippet
index d4394a4..7e31e22 100644
--- a/skeletons/CacheBox.sublime-snippet
+++ b/skeletons/CacheBox.sublime-snippet
@@ -1,58 +1,73 @@
cachebox-config
source,text
CacheBox Configuration File (CaceBox.cfc)
-
\ No newline at end of file
+
diff --git a/skeletons/Coldbox.sublime-snippet b/skeletons/Coldbox.sublime-snippet
index 1acaeb4..7be38d3 100644
--- a/skeletons/Coldbox.sublime-snippet
+++ b/skeletons/Coldbox.sublime-snippet
@@ -1,145 +1,188 @@
config
source,text
ColdBox Configuration File (Coldbox.cfc)
-
\ No newline at end of file
+
diff --git a/skeletons/handler.sublime-snippet b/skeletons/handler.sublime-snippet
index 9954734..6727e4e 100644
--- a/skeletons/handler.sublime-snippet
+++ b/skeletons/handler.sublime-snippet
@@ -4,35 +4,17 @@
* ${1:My Event Handler Hint}
*/
component extends="coldbox.system.EventHandler"{
-
+
// OPTIONAL HANDLER PROPERTIES
this.prehandler_only = "";
this.prehandler_except = "";
this.posthandler_only = "";
this.posthandler_except = "";
this.aroundHandler_only = "";
- this.aroundHandler_except = "";
+ this.aroundHandler_except = "";
// REST Allowed HTTP Methods Ex: this.allowedMethods = {delete='POST,DELETE',index='GET'}
this.allowedMethods = {};
-
- /**
- IMPLICIT FUNCTIONS: Uncomment to use
- function preHandler( event, rc, prc, action, eventArguments){}
- function postHandler( event, rc, prc, action, eventArguments){}
- function aroundHandler( event, rc, prc, targetAction, eventArguments ){
- // executed targeted action
- var args = { event = arguments.event, rc = arguments.rc, prc = arguments.prc };
- structAppend( args, arguments.eventArguments );
- arguments.targetAction( argumentCollection=args );
- }
- function onMissingAction( event, rc, prc, missingAction, eventArguments ){
- }
- function onError( event, rc, prc, faultAction, exception, eventArguments ){
- }
- function onInvalidHTTPMethod( event, rc, prc, faultAction, eventArguments ){
- }
- */
/**
* Index
@@ -40,10 +22,10 @@ component extends="coldbox.system.EventHandler"{
any function index( event, rc, prc ){
${0}
}
-
+
}
]]>
handler
source,text
ColdBox Event Handler
-
\ No newline at end of file
+
diff --git a/skeletons/resource-api-handler.sublime-snippet b/skeletons/resource-api-handler.sublime-snippet
new file mode 100644
index 0000000..d9382d8
--- /dev/null
+++ b/skeletons/resource-api-handler.sublime-snippet
@@ -0,0 +1,62 @@
+
+
+ apiResourceHandler
+ source,text
+ ColdBox API Resource Handler
+
diff --git a/skeletons/resource-handler.sublime-snippet b/skeletons/resource-handler.sublime-snippet
new file mode 100644
index 0000000..deb750e
--- /dev/null
+++ b/skeletons/resource-handler.sublime-snippet
@@ -0,0 +1,71 @@
+
+
+ resourcehandler
+ source,text
+ ColdBox Resource Handler
+
diff --git a/skeletons/resthandler.sublime-snippet b/skeletons/resthandler.sublime-snippet
index bc206aa..7db09a6 100644
--- a/skeletons/resthandler.sublime-snippet
+++ b/skeletons/resthandler.sublime-snippet
@@ -4,10 +4,7 @@
* ${1:My Rest Handler Hint}
*/
component extends="coldbox.system.RestHandler"{
-
- // REST Allowed HTTP Methods Ex: this.allowedMethods = {delete='POST,DELETE',index='GET'}
- this.allowedMethods = {};
-
+
/**
* Index
*/
@@ -15,10 +12,10 @@ component extends="coldbox.system.RestHandler"{
event.getResponse()
.setData( "" );
}
-
+
}
]]>
resthandler
source,text
ColdBox Rest Handler
-
\ No newline at end of file
+
diff --git a/skeletons/router.sublime-snippet b/skeletons/router.sublime-snippet
index d0663a5..83ba81c 100644
--- a/skeletons/router.sublime-snippet
+++ b/skeletons/router.sublime-snippet
@@ -1,35 +1,42 @@
router
source,text
New ColdBox Router
-
\ No newline at end of file
+
diff --git a/snippets/testing/handler.sublime-snippet b/snippets/testing/handler.sublime-snippet
deleted file mode 100644
index fb0b8e6..0000000
--- a/snippets/testing/handler.sublime-snippet
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
- handlerTest
- source,text
- ColdBox Handler Test
-
\ No newline at end of file