liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Liquid Tag that accepts more than one value

Open ChaelCodes opened this issue 4 years ago • 1 comments

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?

ChaelCodes avatar Jun 09 '21 15:06 ChaelCodes

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

ADTC avatar Jun 11 '21 17:06 ADTC