Passing parameters to inclusion in Liquid templates
问题 On my Jekyll-powered website I have an inclusion that does something function-like, but I can't figure out how to pass it parameters correctly. When I use {% include ... %} , passing parameters like this.. {% include function.liquid foo="{{ baz.quux }}" %} ..it just passes the literal string {{ baz.quux }} which is, of course, not what I wanted! I want to pass the value of baz.quux . How do I do this? Thanks! 回答1: There are two ways to achieve this. I have tested both approaches against the