-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making Drop output pretty #808
Comments
if I remember correctly, this is on purpose and was a "security" fix (as in possible information leakage) |
@fw42 Thank you! I saw |
|
Thanks! Not sure if this is something that should be documented. "To print a Drop, ensure |
Hey! Spelunking through the Jekyll, Liquid, and Ruby source code, I noticed an oddity with
output.join
when it contains a Drop.In
Block#render_all
, you create anoutput
variable, which is an empty array,[]
. As you iterate through the various nodes in the@nodelist
, you append theirtoken_output
tooutput
usingoutput << token_output
. Then, at the end, you return the value ofoutput.join
, which calls checks if it's a string viarb_check_string_type
and if not joins it usingrb_ary_join_0
.If
token_output
is aLiquid::Drop
, thenoutput.join
causes the output of[#<Liquid::Drop ...>]
to beLiquid::Drop
. For some reason, it just gets the output ofvalue.class.name
. I can't seem to change this for a Drop I'm writing.The text was updated successfully, but these errors were encountered: