bajo-template 1.1.10 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- import resolveResource, { filecheck } from '../lib/resolve-resource.js'
1
+ import resolveResource, { filecheck } from './lib/resolve-resource.js'
2
2
  import crypto from 'crypto'
3
3
  import path from 'path'
4
4
 
@@ -41,7 +41,7 @@ async function factory (pkgName) {
41
41
  if (!this.app.waibu) return input
42
42
  return this.app.waibu.routePath(input, opts)
43
43
  },
44
- _titleize: this.app.bajo.titleize,
44
+ _titleize: this.lib.aneka.titleize,
45
45
  _hasPlugin: name => this.app.bajo.pluginNames.includes(name),
46
46
  _jsonStringify: this.app.waibuMpa.jsonStringify,
47
47
  _parseMarkdown: content => {
@@ -109,7 +109,8 @@ async function factory (pkgName) {
109
109
 
110
110
  _handleInclude = async (content, locals = {}, opts = {}) => {
111
111
  const { isEmpty, omit, template, merge } = this.lib._
112
- const { extractText, breakNsPath } = this.app.bajo
112
+ const { extractText } = this.lib.aneka
113
+ const { breakNsPath } = this.app.bajo
113
114
  const start = '<!-- include '
114
115
  const end = ' -->'
115
116
  const imports = this.buildCompileImports(opts.lang)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo-template",
3
- "version": "1.1.10",
3
+ "version": "1.2.0",
4
4
  "description": "Template Renderer for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {