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

Feature: Asynchronous Views #17

Closed

Conversation

sgammon
Copy link
Contributor

@sgammon sgammon commented Aug 29, 2019

This changeset proposes a structure for an alternate View annotation, AsyncView. If AsyncView is used with a controller, it will try to load an AsyncViewsRenderer rather than a regular one, which is allowed to return a Publisher rather than producing an HTTP response synchronously from template context.

If merged, this fixes #15 (Async render interface).

Changes so far:

  • Add AsyncView annotation
  • Add AsyncViewsRenderer interface
  • Refactor common items to BaseViewsRenderer
  • Make ViewsRenderer comply with BaseViewsRenderer

@sgammon sgammon force-pushed the feature/async-render branch from 2a09252 to a0ef2bb Compare August 29, 2019 03:13
This changeset proposes a structure for an alternate `View`
annotation, `AsyncView`. If `AsyncView` is used with a controller,
it will try to load an `AsyncViewsRenderer` rather than a regular
one, which is allowed to return a `Publisher` rather than producing
an HTTP response synchronously from template context.

Changes so far:
- [x] Add `AsyncView` annotation
- [x] Add `AsyncViewsRenderer` interface
- [x] Refactor common items to `BaseViewsRenderer`
- [x] Make `ViewsRenderer` comply with `BaseViewsRenderer`
@sgammon sgammon force-pushed the feature/async-render branch from a0ef2bb to 46e261c Compare August 29, 2019 03:28
@sgammon sgammon closed this Aug 29, 2019
@sgammon sgammon deleted the feature/async-render branch August 29, 2019 04:30
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.

Async render interface
1 participant