@nakedcreativity/cee-ms-node 0.3.18 → 0.3.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +11 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -174,7 +174,18 @@ function ceems(config) {
174
174
  }
175
175
  }
176
176
  })
177
+ this.engine.registerFilter('active', (path, match, cssClass) => {
178
+
179
+ var regex = new RegExp("^"+match)
180
+
181
+ if(regex.test(path)){
182
+ return cssClass
183
+ }else {
184
+ return ''
185
+ }
177
186
 
187
+ })
188
+
178
189
  this.engine.registerTag('breadcrumb', {
179
190
  parse: function(tagToken, remainTokens) {
180
191
  this.template = tagToken.args
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nakedcreativity/cee-ms-node",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Cee.ms for Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {