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

Are there plans (and a design in mind) to add custom slide layout #189

Open
KennethNielsen opened this issue Jan 4, 2023 · 1 comment
Open
Labels
enhancement New feature or request question Further information is requested

Comments

@KennethNielsen
Copy link

Hi Josh

Spiel looks like fun. I'm wondering whether there are plans to support custom slide layouts to speed up the writing of presentations and remove some of the need to producing the rich content by hand?

I can think of a few different ways to do that, but you may (and probably) already have a design in mind if it is even meant to be added.

Regards Kenneth

@JoshKarpel
Copy link
Owner

Interesting question; I actually haven't thought about doing this, probably because I'm too deep in the weeds and I'm willing to hammer out the rich content.

At a high level, it would be straightforward to write some helper functions shipped in the library that capture common layouts like "vertically-and-horizontally-centered-rich-text". These could also be represented as classes with __rich__/__rich_console__ methods. I suppose these would serve much the same purpose as slide-level templates in something like PowerPoint, especially if we make it easy to check their source code via the docs so that people can copy and modify them as needed.

I guess my only hesitation is that I would perhaps prefer to instead have a variety of examples in the docs, perhaps on the Gallery page. Then there's no risk of people's presentations changing unexpectedly if the helpers change, though of course the helpers would be versioned with the package itself, so maybe that's not worth worrying about...

I'll think some more about it, but preliminary I like this idea. @KennethNielsen any thoughts on what kind of pre-made layouts would be helpful as an initial set?

@JoshKarpel JoshKarpel added enhancement New feature or request question Further information is requested labels Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants