From ce73e9293d98e1fe977a8dc8e0b2968cec26b428 Mon Sep 17 00:00:00 2001 From: Trevor Buckner Date: Fri, 30 Jul 2021 20:33:24 -0400 Subject: [PATCH] Revert "Update to v3 moustache syntax" This reverts commit fdb294bad96072bebb00dbb0250031f2baf63ed3. --- .../homebrew/editor/snippetbar/snippets/classtable.gen.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/homebrew/editor/snippetbar/snippets/classtable.gen.js b/client/homebrew/editor/snippetbar/snippets/classtable.gen.js index c375c1fa7..867aa625e 100644 --- a/client/homebrew/editor/snippetbar/snippets/classtable.gen.js +++ b/client/homebrew/editor/snippetbar/snippets/classtable.gen.js @@ -70,7 +70,7 @@ module.exports = { let cantrips = 3; let spells = 1; let slots = 2; - return `{{classTable,full,--row-color="rgba(250,0,0,.2)"\n##### The ${classname}\n` + + return `
\n##### The ${classname}\n` + `| Level | Proficiency Bonus | Features | Cantrips Known | Spells Known | 1st | 2nd | 3rd | 4th | 5th | 6th | 7th | 8th | 9th |\n`+ `|:---:|:---:|:---|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|:---:|\n${ _.map(levels, function(levelName, level){ @@ -88,14 +88,14 @@ module.exports = { slots += _.random(0, 2); return `| ${res} |`; - }).join('\n')}\n}}\n\n`; + }).join('\n')}\n
\n\n`; }, half : function(){ const classname = _.sample(classnames); let featureScore = 1; - return `{{classTable,--row-color="rgba(250,0,0,.2)"\n##### The ${classname}\n` + + return `
\n##### The ${classname}\n` + `| Level | Proficiency Bonus | Features | ${_.sample(features)}|\n` + `|:---:|:---:|:---|:---:|\n${ _.map(levels, function(levelName, level){ @@ -109,6 +109,6 @@ module.exports = { featureScore += _.random(0, 1); return `| ${res} |`; - }).join('\n')}\n}}\n\n`; + }).join('\n')}\n
\n\n`; } };