liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Cannot pass argument to struct method

Open drlogout opened this issue 4 years ago • 0 comments

Expected Behavior

{{ 'email' | errors.Get }}

Actual Behavior

syntax error in \"'email' | errors.Get\"

Detailed Description

I have an errors struct with a Get(string) []string method which I would like to use directly in the template. But I can't manage to pass an argument to that method. Other methods without an argument work (e.g. Key() []string).

drlogout avatar Sep 01 '21 21:09 drlogout