{"issue":{"created_at":"2011-11-22T01:41:08Z","state":"open","updated_at":"2011-11-22T22:06:00Z","user":{"gravatar_id":"485c3a33992291f6250575a3d4c02c12","id":362532,"url":"https://api.github.com/users/mdda","login":"mdda","avatar_url":"https://secure.gravatar.com/avatar/485c3a33992291f6250575a3d4c02c12?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":3,"body":"I hacked something together so that I could take output from html2haml, and make it into a hamlish-jinja template.  \r\n\r\nIf this is something that's potentially interesting, I can fork this module, add a utilities folder, and issue a pull request...  Or I could just email you the file.  (the coding is nothing that I'm proud of, btw).\r\n\r\nMartin\r\n:-)","assignee":null,"number":7,"id":2313548,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"Are you interested in a HAML to Hamlish convertor?","html_url":"https://github.com/Pitmairen/hamlish-jinja/issues/7","closed_at":null,"url":"https://api.github.com/repos/Pitmairen/hamlish-jinja/issues/7","milestone":null},"action":"created","comment":{"created_at":"2011-11-22T22:06:00Z","updated_at":"2011-11-22T22:06:00Z","user":{"gravatar_id":"ce7d62d7f5b0abf4cfcaa9b2f5a4b9cb","id":1176831,"url":"https://api.github.com/users/sjz","login":"sjz","avatar_url":"https://secure.gravatar.com/avatar/ce7d62d7f5b0abf4cfcaa9b2f5a4b9cb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"At the moment, it's implemented as a pre-processor to your pre processor (....).\r\nThis was to future-proof myself against any updates you make as we both won't need to maintain the common code base.\r\nBasically, it spams -raw {{mustachestuff}} which is then rendered nicely\r\n\r\nLines starting with `+` are mustache lines, but this can be changed to whatever is deemed most suitable\r\nStill not working awesomely - as I develop it further I'll take into account any suggestions etc too\r\n\r\nThis:\r\n\r\n    +#some_section\r\n      .container\r\n        +some_variable_name\r\n        +{some_escaped_variable\r\n        +>a_partial\r\n        +^inverted_section\r\n        +!comment stuff goes here\r\n\r\nProduces:\r\n\r\n    {% raw %}{{#some_section}}{% endraw %}\r\n    <div class=\"container\">\r\n        {% raw %}{{some_variable_name}}{% endraw %}\r\n        {% raw %}{{{some_escaped_variable}}}{% endraw %}\r\n        {% raw %}{{>a_partial}}{% endraw %}\r\n        {% raw %}{{^inverted_section}}{% endraw %}\r\n        {% raw %}{{/inverted_section}}{% endraw %}\r\n        {% raw %}{{!comment stuff goes here}}{% endraw %}\r\n    </div>\r\n    {% raw %}{{/some_section}}{% endraw %}\r\n\r\nWhich is really:\r\n\r\n    {{#some_section}}    \r\n    <div class=\"container\">\r\n\t{{some_variable_name}}    \r\n\t{{{some_escaped_variable}}}    \r\n\t{{>a_partial}}    \r\n\t{{^inverted_section}}    \r\n\t{{/inverted_section}}    \r\n\t{{!comment stuff goes here}}\r\n    </div>\r\n    {{/some_section}}\r\n\r\n","id":2841527,"url":"https://api.github.com/repos/Pitmairen/hamlish-jinja/issues/comments/2841527"}}