@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.
- package/index.js +11 -0
- 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
|