Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve boolean conversions. (Closes #29)
Prior to this commit, code like %param{ :value => 'false' } %param{ :value => 'true' } would be treated like boolean values, but they should be passed unmodified. This behaviour was changed in the HAML compiler, but leads to a further change: The boolean logic conversion at runtime, wasn't able to distinguish between real booleans and boolean like text attributes. The workaround to this is to let the clean function (`$c`) mark real boolean values with a hidden unicode marker character.
- Loading branch information
Showing
7 changed files
with
120 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters