Skip to content

Fix support for derived classes of Liquid::Raw#148

Merged
dylanahsmith merged 1 commit into
masterfrom
fix-derived-raw-class-support
Mar 12, 2021
Merged

Fix support for derived classes of Liquid::Raw#148
dylanahsmith merged 1 commit into
masterfrom
fix-derived-raw-class-support

Conversation

@dylanahsmith
Copy link
Copy Markdown
Contributor

Problem

#135 introduces a regression for child classes of Liquid::Raw, since it compiles them as if they are Liquid::Raw. See the included regression test for an example.

Solution

Add a conditional to only compile the Liquid::Raw tag to a raw write instruction if the class is equal to Liquid::Raw (i.e. not a subclass)

@dylanahsmith dylanahsmith merged commit a92424d into master Mar 12, 2021
@dylanahsmith dylanahsmith deleted the fix-derived-raw-class-support branch March 12, 2021 17:57
dylanahsmith added a commit that referenced this pull request Mar 17, 2021
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.

2 participants