HamlPy
HamlPy copied to clipboard
Conditional attributes
Conditional boolean attributes were requested by a few people (See #111), but no one has actually made any effort in solving this issue. When I started working on supporting conditional attributes (not only booleans), I realised a proper parser would be a good idea. This PR replaces the simple attribute parser with a proper pyparsing-based one. An actual grammar is defined and can be extended if needed.
Tests and documentation of the new features are included. Some PEP8 changes too.