I have asked a similar question before, but now that I'm using Twine (1.4) rather Twee, I'm wondering if anything might have changed. It's kind of a hail-mary pass, as I don't expect it has, but I thought I'd try.
I would like to add some <meta> tags to my Sugarcube joint to customize behavior on mobile devices. Of course, it would also be nice to insert <script> tags as well. Is there currently a good way to do these sorts of insertions other than hand-editing the HTML file after building? (I use an eval() based script loader now that inserts script tags into the head, but that hacky method doesn't work for all javascript libraries, and I'm reasonably certain that method wouldn't work for meta tags anyway.)
If not, is there any chance of getting a special passage whose content would be inserted directly into <head>?
Comments
<meta>
tags would work out as well (some might, others not so much).Someone else recently (past week) inquired about the same ability (though in their case it was to add metadata required by some IF hosting/database site via
<meta>
tags).Twine 1.4.2 gained a limited ability to inject metadata into
<meta>
tags during compilation (Twee should have the same ability now, however, it's not exposed in any way). I have a idea to allow arbitrary<meta>
tag injection, but I haven't really had the time to either suggest it properly or do it myself.So my request is that whatever mechanism you design, please store the data inside a passage.