Closed freewind closed 14 years ago
I just found it works, but the result is not what I expected. After reading the readme again, I found that "hamlish-jinja" can't convert .main
to <div class="main"
/>`. This IS the most important thing and advantage of HAML, I can't believe that you missed it.
I know about that shortcut, but i don't like it so i didn't implement it. But it should be pretty easy to add though, so maybe i will add it.
That would be great, and thank you! It's very useful and convenient to use them use SASS to design the layout, I love haml just because of that.
I have added this syntax now. :)
I'm tring it in my website now, and most works well, thank you! And, may I have some suggestions?
Hi, pitmairen: I'm new to python, and learning pylons with jinja2. I want to use hamlish-jinja, but found it not works. (The templates are rendered as plain text). I have googled, but found nothing useful. I need you help.
My configuration of "pylons/mysite/config/enviroment.py" is:
My controller is: hello.py
And my template is: mysite/templates/hello.haml
Then I start the server, and visit: http://localhost:5000/hello/index
It shows a page with plain text: .main << Hello
What should I do now? Is there anything I was missing? Thank you in advance!