Not quite what I wanted... I basically have a large passage with many variables <progress> elements etc. and I want to update them with a single command like this:
<<update #id>>
Which is the equivilent of reloading that single part of the passage. This is not very clean code:
<span id="span"><progress value=100 max=1000></progress>
$Variable1
<progress value=200 max=1000></progress>
$Variable2</span>
<<replace #span>><progress value=100 max=1000></progress>
$Variable1
<progress value=200 max=1000></progress>
$Variable2<</replace>>
This is better:
<span id="span"><progress value=100 max=1000></progress>
$Variable1
<progress value=200 max=1000></progress>
$Variable2</span>
<<update #span>>
How would I make a widget or JavaScript macro that does that? (both examples would yeild the same result)