liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Struct bindings

Open abemedia opened this issue 4 years ago • 0 comments

Right now bindings are a map so to use a struct I'd need to do something like the following:

bindings := map[string]interface{}{
    "data": myStructVariable,
}

It would be great if it was possible to pass in a struct directly to keep the liquid code accessing the variables cleaner.

abemedia avatar Jul 04 '21 09:07 abemedia