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 020a6d5 commit 1540eeaCopy full SHA for 1540eea
src/preprocessors/latte.js
@@ -11,6 +11,7 @@ const LATTE_TAG = /\{(?:[a-zA-Z_$\\/=].*?)\}/gs;
11
const LATTE_TAG_DOUBLE = /\{\{(?:[a-zA-Z_$\\/=].*?)\}\}/gs;
12
13
// Default internal replacement function
14
+let counter = 1;
15
function defaultReplacement(tagContent) {
16
let replacedTag = /^(?:=|_|\$|(?:control|link|plink|asset)(?!\w)|\w[\w:\\]*(\(|::))/;
17
@@ -22,7 +23,7 @@ function defaultReplacement(tagContent) {
22
23
}
24
if (replacedTag.test(tagContent)) {
25
// so that you can call a method over it and eslint doesn't correct it as quotes
- return '[]';
26
+ return '[' + (counter++) + ']';
27
28
29
return ''; // remove completely
0 commit comments