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

Adds in-memory serving for the preview server #5

Merged
merged 2 commits into from
Sep 14, 2021
Merged

Conversation

begleynk
Copy link
Member

  • Creates a layer for interacting with generated site: the Site trait
  • InMemorySite and DiskBackedSite implement the trait
  • serve and build commands use them respectively
  • Generator is generic over Site trait
  • InMemorySite is backed by a RwLock<HashMap<Vec<u8>, PathBuf>>>

Closes #4

- Creates a layer for interacting with generated site: the `Site` trait
- InMemorySite and DiskBackedSite implement the trait
- `serve` and `build` commands use them respectively
- Generator is generic over `Site` trait
- InMemorySite is backed by a `RwLock<HashMap<Vec<u8>, PathBuf>>>`
@begleynk begleynk merged commit aed79e5 into master Sep 14, 2021
@begleynk begleynk deleted the in-memory-serve branch September 14, 2021 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generate and serve site from memory in serve mode
1 participant