Discussion on plugin system
See original GitHub issueGenerating a static site isn’t only a matter of routes and flat files. Sometimes you need to generate files that don’t lend themselves to react-router
routes:
- Resized images
- RSS feeds
- .htaccess redirect rules
- Downloaded/locally-cached resources
I can imagine writing generated files directly to /dist
during getSiteProps()
or getProps()
. But that feels incredibly dirty, both because it’s relying on side-effects and because it’s circumventing whatever resource conservation react-static
has or will someday have.
So what’s the recommended way for handling these situations?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9 (7 by maintainers)
Top Results From Across the Web
Plugin System · Discussion #3806 · helix-editor/helix - GitHub
This is a discussion for the future plugin system, created in order to prevent further clutter of #122. Current status as of December...
Read more >Discussion Plugin - DokuWiki
The Discussion Plugin adds a discussion section after your wiki page for user comments. This is useful to separate page content and the...
Read more >Plugin system - Development - Discuss Write.as
I've been thinking about a way to start building a plugin system for WriteFreely. In this thread I want to open up a...
Read more >Discussion Board – WordPress Forum Plugin
Discussion Board is an easy way to add a forum to your WordPress site. It has a one-click installation and stacks of essential...
Read more >Top 9 WordPress Forum Plugins for Discussing Hot Topics
For instance, you might need a BuddyPress system with registration options. There's a plugin for that. You may want to integrate BuddyPress ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So far my thoughts are leaning towards keeping the react-static api very lean and improving the way people use and interact with the examples. I’ve heard some great ideas here and elsewhere about improving the documentation for each example to show linear changes that are made to accomplish each one. We could also make a new
Guides
section in the documentation that instead shows how to implement other popular concepts step by step (ultimately pointing them to the examples for a finished product).I think it’s the latter. The readme should document the core changes and usages in the example with code blocks.
On Thu, Mar 1, 2018 at 10:21 AM Riley notifications@github.com wrote: