Twine Version: 2.8.1.0
So here’s my problem: I want to have an (in-story) date shown in a title bar. I have defined a story passage tagged as “header”, which includes this snippet: <div id="date">$date</div>
And in my passages, where appropriate, I do (set: $date to 'Wednesday, March 14th')
or similar.
The problem is that the change from the (set:) macro only takes effect on the next passage, because the header has already been rendered when the (set:) is evaluated. That makes sense to me, but I do not know how I could work around it, being relatively new to Twine.
I could just move the (set:) to the preceding passage(s) but that seems annoying from an organizational standpoint - that doesn’t feel like the place where that data belongs, architecturally.
Maybe I could turn the header into a footer, then use CSS to pull it to the top of the page. Or are there any better alternatives - a macro that forces rerendering of the headers and footers, perhaps, or a macro that can react dynamically to variable changes?