Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the documentation to show the internal StoryInterface passage #41

Open
BawdyInkSlinger opened this issue Apr 24, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@BawdyInkSlinger
Copy link

BawdyInkSlinger commented Apr 24, 2021

Is your feature request related to a problem?
I want to take the body of my passage and wrap it in a main HTML element. I'm already using PassageHeader, and I DON'T want its content wrapped in the main element. This way, I can easily refer to $("main") when I need to refer to the passage body. Right now, I have to refer to everything that's not the header, but at the same depth. Pretty inconvenient.

Describe the solution you'd like.
After browsing the documentation, it seems like the easiest way of doing this would be to create my own StoryInterface passage. But, I just want to modify one piece of it, not rewrite it from scratch. Unfortunately, the HTML example example is full of ....

Wouldn't it be possible to fill those in with the content that SugarCube really uses for its default StoryInterface? That way, I could just copy and paste that file and modify this one thing.

I know the documentation says that the ... is for dynamic content, but that doesn't give me enough context to understand why this can't be done; a custom StoryInterface can have dynamic content too.

Describe alternatives you've considered.
I think there is a :storystart solution here.

@BawdyInkSlinger BawdyInkSlinger added the enhancement New feature or request label Apr 24, 2021
@BawdyInkSlinger
Copy link
Author

BawdyInkSlinger commented Apr 24, 2021

I just found: https://twinery.org/forum/discussion/8699/new-sugarcube-release-storyinterface-special-passage

That answers why there is no default StoryInterface, so this issue is now a feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant