HamlPy icon indicating copy to clipboard operation
HamlPy copied to clipboard

Conditional attributes

Open D3X opened this issue 8 years ago • 0 comments

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.

D3X avatar Mar 23 '17 22:03 D3X