How do I hide passages from the published HTML?

0 votes
asked Jan 10 by ClariseTG (180 points)
I'm using Harlowe in the newest version of web Twine. I want to be able to prevent certain passages from being added to the published HTML file; not just inaccessible but truly absent from the file. I've heard that this can be done with passage tags, and I've tried Twine.private but it doesn't seem to work. Is there any other way to do this other than making a copy and deleting all unwanted passages before publishing that file? Thank you in advance.

1 Answer

0 votes
answered Jan 10 by greyelf (76,510 points)

Twine.private is one of the tags used by the Twine 1 application to indicate that the marked Passage was private to the Story Project, and not to be included in the generated HTML file.  Another of the tags is annotation, which was used by Authors to indicate a Comment Only Passage.

The Twine 2 source code responsible for publishing a story does not seem to include any functionality for excluding Passages from the generated HTML file.

commented Jan 11 by ClariseTG (180 points)
Thank you! : D
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.