Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

form_tag and submit_tag broken with Hamlit #419

Open
Xanthus opened this issue Jun 25, 2016 · 4 comments
Open

form_tag and submit_tag broken with Hamlit #419

Xanthus opened this issue Jun 25, 2016 · 4 comments

Comments

@Xanthus
Copy link

Xanthus commented Jun 25, 2016

I'm not sure if this is Cells and/or Hamlit, but using a bare Rails 4.2.6 app on Ruby 2.2.3, rendering a simple form tag and submit tag is broken with Hamlit:

=form_tag '/' do
  = submit_tag 'Save'

I get:

With cells-hamlit (0.2.0):

<input type="submit" name="commit" value="Save" />
<form action="/" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="authenticity_token" value="ocWFwYCM9qLZ8qqC7MOuHw98xje0g1ROcGu+7qi706YZ5C9FkqDhPA679r5CpOGTc9fUykUevBzTs+xUPOZ5hw==" />["<input type=\"submit\" name=\"commit\" value=\"Save\" />", "\n"]</form>

With cells-haml (0.0.10) and the haml ref from the readme:

<form action="/" accept-charset="UTF-8" method="post"><input name="utf8" type="hidden" value="&#x2713;" /><input type="hidden" name="authenticity_token" value="Ozbug08sSSPi6CNZ0tZOMCFEC11/Wu5E2lrSwVYRXsaDF0QHXQBevTWhf2V8sQG8Xe8ZoI7HBhZ5goB7wkz05w==" />
  <input type="submit" name="commit" value="Save" />
</form>
@samstickland
Copy link

Have you tried installing hamlit-block ?

2016-06-25 16:48 GMT+01:00 Nick Yatracos [email protected]:

I'm not sure if this is Cells and/or Hamlit, but using a bare Rails 4.2.6
app on Ruby 2.2.3, rendering a simple form tag and submit tag is broken
with Hamlit:

=form_tag '/' do
= submit_tag 'Save'

I get:

With cells-hamlit (0.2.0):

["", "\n"]

With cells-haml (0.0.10) and the haml ref from the readme:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#419, or mute the thread
https://github.com/notifications/unsubscribe/AJfZU51gmFnXebv-AOT71-ZZ9e-3Pg2qks5qPU3egaJpZM4I-Xwo
.

@Titinux
Copy link

Titinux commented Jun 26, 2016

It's the same problem described on https://github.com/hamlit/hamlit-block/issues/1

@Xanthus
Copy link
Author

Xanthus commented Jun 26, 2016

I see. @samstickland installing hamlit-block has the side effect you mentioned in https://github.com/hamlit/hamlit-block/issues/1 where blocks no longer have any output so my other templates break.

@samstickland
Copy link

Yeah @apotonick or the hamlit author might have something to add about
this. I've since swapped hamlit for slim.

Sam
El 26 jun. 2016 2:54 PM, "Nick Yatracos" [email protected]
escribió:

I see. @samstickland https://github.com/samstickland installing
hamlit-block has the side effect you mentioned in hamlit/hamlit-block#1
https://github.com/hamlit/hamlit-block/issues/1 where blocks no longer
have any output so my other templates break.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#419 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AJfZU65EDUkeawE6rvn4hKW3QG8cJizZks5qPoR2gaJpZM4I-Xwo
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants