HamlPy
HamlPy copied to clipboard
A converter of HAML like templates into Django templates.
Really like this idea so decided to add support for templates of my favorite framework web2py. Sorry for the sloppy commits and lack of author. New to git and github....
A `:sass` filter has been implemented to process the SASS-indented-syntax, a YAML based style-sheet format (somewhat similar to `Stylus`). The big difference from Stylus is that I have written a...
I tend to embed inline javascript snippets by using [`{% include %}` django template tags](https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#include) like this: ``` -# template.haml !!! 5 %html %body %p hello world %script {% autoescape...
If you create an element, for example ``` haml #element_id.element_class ``` you'll get ``` html ``` but if you the id after the class: ``` haml .element_class#element_id ``` you'll get...
Testing for the empty value of two Django variables fails when using the HAML syntax but works with the Django templating syntax. This failed: ``` html -if myobject.attr1 or myobject.attr2...
Hi! First of all thanks for the HamlPy. Realy good tool. But I have a trouble with {% staic %} tag. I try to add style in base.haml template but...
If anyone is interested, I finally put up my HTML -> HamlPy compiler: https://github.com/boscoh/tohaml It's useful if you want to start writing your HAML file from an existing HTML page,...
HamlPy removes all line breaks in JS. This breaks comments in the `// comment` format, while the use of `/* comment */` is discouraged in Javascript [1]. [1] "JavaScript: The...
This haml ``` - if True - else ``` Produces the following correct output: ``` {% if True %} {% else %} {% endif %} ``` However, adding a HamlPy...