Shopify / liquid

Liquid markup language. Safe, customer facing template language for flexible web apps.
https://shopify.github.io/liquid/
MIT License
11.06k stars 1.38k forks source link

Liquid Tag that accepts more than one value #1455

Open ChaelCodes opened 3 years ago

ChaelCodes commented 3 years ago

Description

I'm trying to create a liquid tag that embeds a YouTube video with a caption below it. In order to do this, I need to accept two values: the YouTube URL, and the caption text. I've searched all over the internet, Liquid's documentation, and multiple blog posts, but almost all examples I've found utilize one string that gets parsed within the liquid tag. Is it possible to pass multiple values to a Liquid Tag through a standard interface?

ADTC commented 3 years ago

Please show your code. 🙂 (make sure to simplify it to only demonstrate what you're talking about, without any distractions)