- Add smart_quotes option to replace conflicting quotes in attribute values with ' or "
- Add support for named end blocks
- Fix using double quotes as attribute wrapper
- Update required python version to 3.9
- Update .gitignore
- Merge pull request #95 from nyaruka/fix-app-config
- Test in python 3.11 as well
- Run black
- Update pygments to 2.14.0
- Add apps submodule
- Update deps for code styles
- Update README.md
- Loosen regex dependency
- Fix Django requirement to properly support 3.x
- Switch to new release system
- Allow colons inside class names
- Add support for markdown extensions (#78)
- Drop support for Django 1.x, test on 2.x and 3.x
- Fix patching makemessages on Django 1.11
- Add support for more doc types (default is HTML5) (#63)
- Add format (html4/html5/xhtml) and escape_attrs (True/False) compiler options
- Don't use empty tag syntax or CDATA sections (can be overridden) in HTML5 format
- Fix patching of templatize for makemessages (#65)
- Add support for Django 1.11 betas (#62)
- Fix use of plural tag within blocktrans tag (#57)
- Add less, sass and escaped filters (#55)
- Add :preserve filter (#49)
- Fix filter lookup to ignore trailing whitespace
This is the first major release and there are some potentially breaking changes noted below.
- Refactor of parsing code giving ~40% performance improvement
- Added support for HTML style attribute dictionaries, e.g.
%span(foo="bar")
- Improved error reporting from parser to help find problems in your templates
- Fixed attribute values not being able to include braces (#39)
- Fixed attribute values which are Haml not being able to have blank lines (#41)
- Fixed sequential
with
tags ended up nested (#23) - Fixed templatize patching for Django 1.9+
- Changed support for
={..}
style expressions to be disabled by default (#16) - Removed support for
=#
comment syntax - Project now maintained by Nyaruka (https://github.com/nyaruka)
- Support for
={...}
variable substitutions is deprecated and disabled by default, but can be enabled by settingHAMLPY_DJANGO_INLINE_STYLE
toTrue
if you are using the template loaders, or specifying --django-inline if you are using the watcher script. The preferred syntax for variable substitutions is#{...}
as this is actual Haml and is less likely conflict with other uses of the=
character. - The
=# ...
comment syntax is no longer supported. This is not Haml and was never documented anywhere. You should use the-# ...
syntax instead. - Any line beginning with a colon is interpreted as a filter, so if this is not the case, you should escape the colon,
e.g.
\:not-a-filter
- Fixed some incorrect relative imports #21 by @Kangaroux
- Add call and macro tags to the self-closing dict by @andreif
- Remove django 1.1 support by @rowanseymour
- Switch to a real parser instead of eval by @rowanseymour
- Improve tests and code quality by @rowanseymour
- Add performance tests by @rowanseymour
- Tag names can include a "-" (for angular for example) by @rowanseymour
- Don't uses tox anymore for testing by @rowanseymour
- Classes shorthand can come before a id one by @rowanseymour
- Added co-maintainership guidelines by @psycojoker
- Python 3 support by @rowanseymour #1
- Attributes now output by alphabetic order (this was needed to have deterministic tests) by @rowanseymour #2
- Add support for boolean attributes - see Attributes without values (Boolean attributes)
- Add Django class based generic views that looks for
*.haml
and*.hamlpy
templates in additions of the normal ones (https://github.com/Psycojoker/django-hamlpy#class-based-generic-views)
- New fork since sadly hamlpy isn't maintained anymore
- Pypi release have been renamed "django-hamlpy" instead of "hamlpy"
- Added Django 1.9 compatibility (jessemiller#166)