We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8aa7c28 commit 709686eCopy full SHA for 709686e
1 file changed
lib/index.js
@@ -25,8 +25,7 @@ module.exports = (options = {}) => {
25
if (src) {
26
src = path.resolve(options.root, src);
27
source = fs.readFileSync(src, options.encoding);
28
-
29
- if (locals) {
+ if (locals && locals.includes(':')) {
30
locals = JSON.parse(locals);
31
const result = posthtml()
32
.use(expressions({locals}))
0 commit comments