← 输入框|github.com|刷新
Skip to content

Build on the region renderer from django-content-editor - #73

Merged
matthiask merged 2 commits into
mainfrom
content-editor-renderer
Oct 28, 2026
Merged

matthiask merged 2 commits into
mainfrom
content-editor-renderer

Conversation

@matthiask

Copy link
Copy Markdown
Member

Counterpart to feincms/django-content-editor#65, which moves the region renderer into content_editor.renderer and adds containers (plugins nesting other plugins using an explicit depth). See specs/explicit-container-tree.md there for the release plan: both land together, django-content-editor 10.0 and this.

  • feincms3.renderer re-exports content_editor.renderer (RegionRenderer, template_renderer, render_in_context, default_context, PluginNotRegisteredError), so existing imports keep working. Its RegionRenderer subclass only keeps the deprecated compatibility APIs (TemplatePluginRenderer, register_string_renderer, register_template_renderer, render_plugin_in_context, handlers) and closer-based section rendering.
  • RegionRenderer renders containers now, inherited from django-content-editor.
  • Closer-based section rendering (render_section_plugins, register_section_close) emits a DeprecationWarning; content is migrated using content_editor.migrations_utils.compute_depths.
  • Requires django-content-editor 10.

Blocked on django-content-editor 10.0 being released: CI and the docs build install django-content-editor from PyPI, where content_editor.renderer doesn't exist yet. Tested locally against the django-content-editor branch (all tests pass, docs build without warnings).

🤖 Generated with Claude Code

@matthiask
matthiask merged commit d64d95a into main Oct 28, 2026
1 of 7 checks passed
@matthiask
matthiask deleted the content-editor-renderer branch October 28, 2026 09:40
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