- const V = VariantRules; //because this variable is often used
- const variant = "#{variant}";
- const problemArray = !{JSON.stringify(problemArray)};
- script(src="/javascripts/components/rules.js")
+ const variant = !{JSON.stringify(variant)};
+ // Just 'V' because this variable is often used:
+ const V = eval(variant.name + "Rules");
+ script(src="/javascripts/components/board.js")
+ script(src="/javascripts/components/chat.js")
+ script(src="/javascripts/components/gameList.js")
+ script(src="/javascripts/components/challengeList.js")
+ script(src="/javascripts/components/moveList.js")