HGustavs / LenaSYS

Code Viewer and Course Organization System used in some courses at University of Skövde
57 stars 31 forks source link

Template literals where applicable #9785

Open HGustavs opened 3 years ago

HGustavs commented 3 years ago

In all non-deprecated places we should replace the current string based system with template literals.

For example "<body>" can remain as is...

But

"<body><div>"+str+"</div></body>" should be replaced with

<body><div>{$str}</div></body>

or even

<body> <div>{$str}</div> </body>

If the line is very long (in this case the string is too short to split into multiple lines)

HGustavs commented 3 years ago

This issue needs to be divided into multiple sub-issues.