klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2k stars 296 forks source link

Accessing the html code for a Twine story without an external download #1511

Open breeeeezy97 opened 7 months ago

breeeeezy97 commented 7 months ago

Is your feature request related to a problem? Please describe.

The problem is, my host school has removed access to the downloads meaning my students will not be able to publish to file and get the html code.

Describe the solution you'd like.

I am not good with coding so I have no idea if this is possible (Please delete if not). Would it be possible to have the code for the twine available without downloading anything? Something like a live box that tracks the code of the twine in real time as it is being edited that is copiable without having to publish the twine?

Describe alternatives you've considered.

Don't know if there is a possible other solution or feature, kind of new to this

Additional context on this suggestion.

Hello, new to Github but have been using twine a couple of months. I am a student teacher who wants to use Twine in an activity for my students. The goal is to have them write a story with 4 endings (2 forks) that they will present to the class in the form of a game the class will play on a Google Site. I know how to get the html code using the publish to file option which can then be pasted into the embed feature of Google Sites.

Presubmission checklist

klembot commented 6 months ago

It'd be possible to have a text field you could copy HTML source code out of instead of a download, but this is an unusual use case (it seems really draconian, but I get that you don't have any control over this). I'm curious if there are any other people out there that want a feature similar to this.

breeeeezy97 commented 6 months ago

I know it is a very specific case. What if it was a toggle where if you need it, it is there. I'm thinking something like the proof button but for the code. Again, I have no idea how to code but it seems to me that the proof button is a live update feature with a toggle that the code feature could emulate. Thank you for the reply by the way!

KlausMikhaelson commented 6 months ago

@klembot this sounds like a really cool feature which can make it more accessible. If the issue gets approved, I would be really interested in working on it!

klembot commented 6 months ago

@KlausMikhaelson what UI do you envision for this? That's the main thing here, I think, because I feel like is likely to be infrequently used, so it shouldn't be that prominent, but at the same time available for those who do need it.