slime icon indicating copy to clipboard operation
slime copied to clipboard

`cond` blocks in template problem

Open silverdr opened this issue 2 years ago • 0 comments

When trying to write cond do block inside a template I get

** (SyntaxError) lib/phxapp_web/templates/entity/index.html.slim:1:2380: syntax error before: '->'
    |
  1 |  PhxApp.function_returning_bool?(argument) -> {"string0", "string1"}
    |                                            ^

Am I doing something wrong or is this just a no-go?

silverdr avatar Nov 06 '22 17:11 silverdr