fluid
fluid copied to clipboard
Render method with parameters not working?
I have a liquid-file 'data-converters\gender.liquid' with this content:
{%- case gender -%}
{%- when "M" -%}male
{%- when "F" -%}female
{%- else -%}other
{%- endcase -%}
I uses include with a parameter like this:
{% include 'data-converters/gender', gender: "F" %}
This works as expected. Also when I change this to the now to be used render statement, the output is the same. But when I replace that with an object with a field the include works, but the render does not. It looks like the parameter is not passed?
when I replace that with an object with a field
Can you show what you mean?