Form_for helper in Slim template

As a study, I am rewriting code examples from Getting Started document with the Slim template engine, but the form_for part become so ugly. Rush of backslashes!

Are there any better way to write forms using Slim in Hanami templates?

@sakuro Hi, does slim is able to “capture” blocks?

I am not sure if it can but README has a section mentioning capturing.

Thanks for pointing up. That can be a good input to work on.

I haven’t dig the code but “capturing” can help to improve Slim support. Can you please create a ticket on hanami/view? Thanks.

1 Like

I created #122.

2 Likes