Skip to content

Add deferred partial rendering with Declarative Partial Updates#2088

Open
Maaarcocr wants to merge 1 commit into
mainfrom
render-after-prototype
Open

Add deferred partial rendering with Declarative Partial Updates#2088
Maaarcocr wants to merge 1 commit into
mainfrom
render-after-prototype

Conversation

@Maaarcocr
Copy link
Copy Markdown
Contributor

Summary

  • Introduce an after modifier for the render tag to defer isolated partial rendering
  • Emit Declarative Partial Updates-style processing instruction markers during the initial render
  • Add context APIs to flush deferred renders as <template for=...> replacement patches
  • Document the proposal in proposals/render-after.md

Testing

  • ruby -c lib/liquid/tags/render.rb
  • ruby -c lib/liquid/context.rb
  • ruby -c test/integration/tags/render_tag_test.rb
  • bundle exec ruby -Itest test/integration/tags/render_tag_test.rb -n '/render_after/'

Introduce an `after` modifier for the render tag using Google's
proposed Declarative Partial Updates format. Initial rendering emits
processing-instruction markers, queues isolated partial renders, and
flushes `<template for=...>` replacement patches from the context.
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.

1 participant