on scene selection OK + keyframe model
This commit is contained in:
@@ -126,8 +126,8 @@ class Controller {
|
||||
static processTemplate(name, html, templateData) {
|
||||
|
||||
// Define a function inside of which templateData keys will become local variables
|
||||
// AND where templateData values will become thos variable values ;-)
|
||||
// Drawback is that complex epression
|
||||
// AND where templateData values will become those variable values ;-)
|
||||
// Drawback is that complex expression
|
||||
function evalaluateTemplate(tpl, params) {
|
||||
var interpretor = Function(...Object.keys(params), 'return('+tpl+');' );
|
||||
return interpretor(...Object.values(params));
|
||||
@@ -163,7 +163,7 @@ class Controller {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Now that all remaining expressions are OK, evaluate the template via backtits !
|
||||
return(evalaluateTemplate('`' + html + '`', templateData));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user