Hey gang,
I was wondering if it would be a good feature to be able to either tag a passage that would contain all of the things you want to add to the <head></head> space, or alternatively it could be in that little triangle pop-up button in the editor.
Thoughts?
My idea is that since people are always asking about how to add this or that after the fact, maybe this could inject whatever the wrote there? Things like calling a CSS or a JS or what-have-you.
Yes... they could inadvertently break something in their own story, but I think this is already the case, no?
Anyway... that's my idea. I just wondered if anyone else thought it had merit enough to be an official suggestion.
Sage
PS, if this already exists, please tell me where. Ha!
Comments
Aside from altering the html file after publish (which is obviously bad due to workflow issues, since it precludes easy testing if you need to alter the HTML before every single test), it's also the only way to get GreenSock Animation into Twine currently.
That said, stuff like this is still a decent Twine 2 request, due to how powerful some of this can be.
https://bitbucket.org/klembot/twinejs/issues/164/head-section-includes
I thought that it might help you to see what Chris' idea was for a workaround (in case you had ANY desire to migrate over to 2). Here it is, below:
From @Klembot
I also included @TheMadExile (but only because you're a developer... no real reason for you to respond).