Pitmairen / hamlish-jinja

A haml-ish syntax for jinja2 templates
BSD 3-Clause "New" or "Revised" License
131 stars 11 forks source link

%img with 'src' attribute causes error #12

Closed bantic closed 12 years ago

bantic commented 12 years ago

If I do %img src="path/to/img.png" then I get the error AttributeError: 'TemplateSyntaxError' object has no attribute 'msg' (from line 40 in preprocess of hamlish_jinja.py).

This seems to be specific to the %img tag, because if I do %a src="path/to/img.png" then it prints out <a src="path/to/img.png"></a> as expected.

bantic commented 12 years ago

I've noticed that this seems to work in some cases but not others. I definitely have imgs working correctly in other .haml files, so I'm not sure what all the necessary conditions to reproduce this are.

Pitmairen commented 12 years ago

It's possible this is also because of the old 0.1.0 version.

But i cant reproduce with 0.1.0 version or the latest from git.

Can you post the whole template?

bantic commented 12 years ago

This works fine when I installed from git, thanks.