Twine Version: 2.9.2
Hello everybody,
is it possible in SugarCube2 to have
classes inserted from variables?
What I want to do is something like this:
_nodeData was obviously loaded previously and contains all the relevant
node data that will be used to render the button to click on.
<<set _nodeName to _nodeData.name>>
<<set _nodeIcon to _nodeData.icon>>
<<set _nodePosition to _nodeData.position>>
<div class=_nodePosition>
[img[$imgPath + _nodeIcon][_nodeName][$enter to true]]
</div>
But all I get is something like this:
Can I do this dynamic assignment of classes with simple Twine code?
Thanks, Pesha.