Skip to content

Pass custom values through stack frames - #631

Open
jesseditson wants to merge 1 commit into
cobalt-org:masterfrom
archival-dev:stack_frame_with_custom_value
Open

jesseditson wants to merge 1 commit into
cobalt-org:masterfrom
archival-dev:stack_frame_with_custom_value

Conversation

@jesseditson

Copy link
Copy Markdown

In Archival, we have a few object types that are effectively structs. These never make sense to render directly, but it's a common mistake to attempt to render them, which results in the ValueView dumping their contents directly into the markup. I was exploring how I might solve for this, and it seemed like this approach might be the blessed way to do it:

archival-dev/archival#57

Specifically:

https://github.com/archival-dev/archival/pull/57/changes#diff-a7277fbc6a795fb78611f12675ebeaa7a10b5106586f424600c17db377b2387aR1-R28

And the implementation:

https://github.com/archival-dev/archival/pull/57/changes#diff-66d98e8e5325d54b2cb52cafc26ba21d8e2b36ab9294e9f233f78f0192d743e8R105-R152

However this change doesn't work against liquid-rust's main, due to the to_owned copy. I believe this PR is all that is needed to allow consumers to wrap and custom render.

  • Tests created for any new feature or regression tests for bugfixes.

Related: #521

This branch has not been deployed

No deployments
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