beeware / podium

A Markdown-based native presentation tool
BSD 3-Clause "New" or "Revised" License
182 stars 28 forks source link

Update Podium for recent Toga compatibility #59

Closed freakboy3742 closed 1 year ago

freakboy3742 commented 2 years ago

Updates Podium to reflect recent API changes in Toga.

The most notable of these is the move to WKWebView on Cocoa; WKWebView doesn't (easily) support the use of file:/// URLs, so a local fileserver is needed.

This has the added bonus of giving much better control over exactly what content is served from where - themes, content caching, and "default resources" are a lot easier to handle when there's a web server acting as a proxy for web content.

It also means we're able to introduce a "print" command that can use a Print template to render in a a web browser. This isn't a true "print", as we're still relying on a browser to do the printing, but it means printing a deck is a lot easier.

Requires beeware/toga#1658, so it can't be merged quite yet.

PR Checklist: