Skip to content

Replace render_variable_content with a chainable with_variables API - #6

Merged
anquinn merged 1 commit into
mainfrom
chainable-method
Jul 19, 2026
Merged

Replace render_variable_content with a chainable with_variables API#6
anquinn merged 1 commit into
mainfrom
chainable-method

Conversation

@anquinn

@anquinn anquinn commented Jul 19, 2026

Copy link
Copy Markdown
Owner

with_variables returns a resolved ActionText::Content, so to_s, to_plain_text, and to_markdown all work on it. Views render with <%= @record.body.with_variables %>.

Values are now inserted as text nodes and escaped per format, so Liquid drops shouldn't pre-escape anymore. render_variable_content and the content_layout option have been removed.

with_variables returns a resolved ActionText::Content, so to_s, to_plain_text, and to_markdown all work on it. Views render with <%= @record.body.with_variables %>.

Values are now inserted as text nodes and escaped per format, so Liquid drops shouldn't pre-escape anymore. render_variable_content and the content_layout option have been removed.
@anquinn
anquinn merged commit 5e22660 into main Jul 19, 2026
7 checks passed
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