We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
this.
styleNamespace
1 parent f4d3755 commit 3ca1e7bCopy full SHA for 3ca1e7b
2 files changed
lib/__tests__/__snapshots__/transform.js.snap
@@ -161,7 +161,7 @@ foo
161
});
162
163
~~~~~~~~~~
164
-<div class=\\"{{styleNamespace}} foo bar:baz\\" ...attributes>
+<div class=\\"{{this.styleNamespace}} foo bar:baz\\" ...attributes>
165
foo
166
</div>
167
=========="
lib/transform/template.js
@@ -14,7 +14,7 @@ module.exports = function transformTemplate(
14
// wrap existing template with root element
15
let classNodes = [];
16
if (options.hasComponentCSS) {
17
- classNodes.push(b.mustache('styleNamespace'));
+ classNodes.push(b.mustache('this.styleNamespace'));
18
}
19
for (let className of classNames) {
20
classNodes.push(b.text(className));
0 commit comments