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 3f3d261 commit 73dc216Copy full SHA for 73dc216
lib/index.js
@@ -114,7 +114,8 @@ module.exports = function postHTMLExpressions (options) {
114
loopTags: ['each'],
115
scopeTags: ['scope'],
116
ignoredTag: 'raw',
117
- strictMode: true
+ strictMode: true,
118
+ localsAttr: 'locals'
119
}, options)
120
121
// set tags
lib/locals.js
@@ -21,7 +21,7 @@ const ctx = vm.createContext({ module })
21
*/
22
function scriptDataLocals (tree, options) {
23
const locals = {}
24
- const localsAttr = options.localsAttr || 'locals'
+ const localsAttr = options.localsAttr
25
26
match.call(tree, matchHelper(`script[${localsAttr}]`), node => {
27
if (node.content) {
0 commit comments