zulip/tools/lib
adnrs96 e84cf7b6f1 tools: Create HTML pretty printer.
In This commit we extend the work being done by @showell in PR#1778
to develop a tool to pretty print html and our handlebar templates
in order to enforce our style convention of 4 Space indentation in
templates.

This commit introduces following changes:
* Fix Py3 Compatibility.
* Add ability to prettify in cases when html tags are not the
  starting of a line and addition of test cases for it.
* Add ability to lint handlebar tags and add test cases for it.
* Add {{else}} as special case of indent.
* Add test cases in general to testing new tool.

@showell Helped me throughout and reviewed this commit.

Fixes #1778
2017-02-15 07:34:43 -08:00
..
__init__.py Extract tools/lib/template_parser.py. 2016-08-01 16:27:50 -07:00
api_tests.py lint: Clean up E712 PEP-8 rule. 2017-01-23 21:11:18 -08:00
css_parser.py css parser: Show line numbers for errors. 2017-02-01 10:02:03 -08:00
find_add_class.py redesign: Change /#settings and /#administration to an overlay. 2017-02-09 23:35:10 -08:00
html_branches.py Lint for duplicate ids in templates. 2017-01-13 17:00:22 -08:00
html_grep.py Remove extra new lines at the ends of Zulip authoried files. 2016-09-26 21:05:24 -07:00
pretty_print.py tools: Create HTML pretty printer. 2017-02-15 07:34:43 -08:00
provision.py Add wrapper and log file output for provisioning. 2017-01-17 14:23:28 -08:00
sanity_check.py tools: Create more consistent checks for venv. 2017-02-06 21:50:32 -08:00
template_parser.py linters: Handle comments better in template parser. 2017-02-02 20:55:43 -08:00
test_script.py Add wrapper and log file output for provisioning. 2017-01-17 14:23:28 -08:00
test_server.py Add use_db flag to test_server_running(). 2017-01-25 16:33:19 -08:00