Form_for helper in Slim template


#1

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?


#2

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


#3

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


#4

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.


#5

I created #122.