Releases: davidtingsu/html2hamlpy
Django Support
Changelog
0.11.2 (2014-09-11)
Fix
- 3.x compat, cdata & django tags in script. [David Su]
django tags in style and script tags were not converting because of
the difference in the underlying html parser. sufficent to check if
soup is non-empty versus checking if soup.body is non-null. in
escape_html_except_for_dynamic iterator over soup.contents instead of
soup.body.children fixed inconsistencies in cdata content indentation
after content is converted to django fix relative import bug with
python 3. Explicitly specify the relative directory instead of python
searching in sys.path
- Non-inline text. [David Su]
- make sure non-inline text is rendered properly - make sure empty
string is rendered as empty string
Other
-
Merge branch 'master' into django. [David Su]
Conflicts: lib/html2hamlpy/html.py
-
Convert django tags in script, style, & cdata. [David Su]
-
Convert django variables in script, style, & cdata. [David Su]
-
Refactor/fix django tag conversion. [David Su]
convert django tags to html tags first and put tag in 'dynamic' html
so we have access to the tags in the BeautifulSoup API. Easier to
handle spacing is_dynamic is implemented for a tag and attribute and
returns true if and only if the tag name is 'dynamic'
TODO: test dynamic content in cdata and script tags -
Hamlpy-ize self closing django tags. [David Su]
-
Render variables in html attrs. [David Su]
- verify variables attributes get rendered - remove usage of
re.MULTILINE in select regex. used only in conjunction with ^ or $
special regex characters
- verify variables attributes get rendered - remove usage of
-
Convert django variable tags. [David Su]
-
Convert closed django tags. [David Su]
TODO: self-closing tags
0.9.0 (2014-08-04)
New
- Transform cdata to haml. [David Su]
- test_cdata - test_script_tag_with_cdata -
test_script_tag_with_html_escaped_javascript - decode html entities in
script tag. - fix multiline unshift of text in script and css tags
0.8.0 (2014-08-01)
------------------
New
-
Convert conditional & regular comment to haml. [David Su]
verify with unit tests
0.7.1 (2014-07-17)
Fix
- Test_style_to_css_filter_with_following_content. [David Su]
0.7.0 (2014-07-15)
------------------
New
- Transform inline text to haml. [David Su]
- test_inline_text
0.6.0 (2014-07-15)
New
- Support inline javascript. [David Su]
0.5.0 (2014-07-10)
------------------
New
- Implement <style> -> :css. [David Su]
0.4.0 (2014-07-08)
New
- Close self closing tags with a forward slash. [David Su]
e.g <img/> => %img/
0.3.0 (2014-07-08)
------------------
New
-
Parse doctype to haml. [David Su]
consider either supporting more Doctypes for hamlpy or parse doctype
to hamlpy
0.2.0 (2014-07-07)
New
- Html attrs as hamlpy attrs. Smart class/ids. [David Su]
- html attributes now rendered as hamlpy attributes -
test_class_with_dot_and_hash - test_id_with_dot_and_hash
0.1.0 (2014-07-07)
------------------
New
- Convert classes and id to hamlpy. [David Su]
- verify conversion of classes and ids with tests - setup testing
environment: run nosetests from project directory
- verify conversion of classes and ids with tests - setup testing
Other
- Initial commit. [David Su]