bajo-template 1.1.9 → 1.1.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-template",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Template Renderer for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/plugin/factory.js CHANGED
@@ -33,9 +33,13 @@ async function factory (pkgName) {
33
33
  opts.lang = opts.lang ?? lang
34
34
  return this.app.bajo.format(val, type, opts)
35
35
  },
36
- _routePath: (input) => {
36
+ _findRoute: (input) => {
37
+ if (!this.app.waibu) return false
38
+ return this.app.waibu.findRoute(input)
39
+ },
40
+ _routePath: (input, opts) => {
37
41
  if (!this.app.waibu) return input
38
- return this.app.waibu.routePath(input)
42
+ return this.app.waibu.routePath(input, opts)
39
43
  },
40
44
  _titleize: this.app.bajo.titleize,
41
45
  _hasPlugin: name => this.app.bajo.pluginNames.includes(name),