mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
2.1 KiB
JSON
1 line
2.1 KiB
JSON
[{"user_id": 36260, "stars": [], "topic_id": 39544, "date_created": 1308231390.9447939, "message": "Well... maybe I'm being a little cheesy about it... But when using ERB the \"outputed\" HTML is out of place (inside =yield). It isn't all nested out and beautiful (as usually is with HAML). Is there a way to acomplish that or this is a ERB's \"feature\"?\n\nI'm not that big of a fan of HAML anymore and would like to stick with ERB but the final HTML (delivered) needs to be in order so other people doesn't complain too much =/", "group_id": 10410, "id": 1410076}, {"user_id": 7586, "stars": [], "topic_id": 39544, "date_created": 1308240372.470176, "message": "You are correct, the pretty indenting is a feature of HAML. Erb won't do this. It won't mess with your indentation at all, so if you take care and indent the partials and pages to match the indentation level of the layout, it should end up looking professional.", "group_id": 10410, "id": 1411540}, {"user_id": 36260, "stars": [], "topic_id": 39544, "date_created": 1308317268.496351, "message": "thanks again Thomas! It's just that I find it awkward to open up a partial and look at the code almost in the middle of the editor... anyway, things I have to live with when dealing with ERB!", "group_id": 10410, "id": 1418817}, {"user_id": 7586, "stars": [], "topic_id": 39544, "date_created": 1308375633.8340249, "message": "It is also possible to use a command line tool like html tidy to cleanup built code in some manner.", "group_id": 10410, "id": 1425150}, {"user_id": 39343, "stars": [], "topic_id": 39544, "date_created": 1312548833.1074281, "message": "A bit late to the party here but\u2026 It should also be possible to write a helper function for indentation, and wrap your \"yield\" statement with it. I remember doing that in Rails a few years ago, before I started using HAML.", "group_id": 10410, "id": 1801589}, {"user_id": 7586, "stars": [], "topic_id": 39544, "date_created": 1312751634.1742041, "message": "Further adding, Rack Middleware like Rack::Tidy can automatically fix indentation.", "group_id": 10410, "id": 1816345}] |