summaryrefslogtreecommitdiff
path: root/cheetah/Parser.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove references to the `new` moduleR. Tyler Ballance2009-12-271-5/+5
|
* only split multiline strings in output code at repr generated breaksDoug Knight2009-12-141-1/+1
| | | | Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
* move handling of escaped variables and directives to the parserDoug Knight2009-12-141-0/+15
| | | | | | | | | Once text reaches the compiler, it is too late to parse escaped variables and directives. The compiler does not know where the text came from, and can not determine when it should skip processing of escape sequences for raw blocks. Signed-off-by: R. Tyler Ballance <tyler@monkeypox.org>
* Introduce the DirectiveAnalyzer for processing templates for directive usageR. Tyler Ballance2009-11-161-6/+9
| | | | | Hoping to form this into a fully-fledged reporting tool so I can gauge usage of directives to start cutting some out.
* Clean up a swath of fixes suggested by 2to3R. Tyler Ballance2009-11-161-60/+60
| | | | | Fixes from 2to3 include: xrange, ws_comma, repr, reduce, raise, idioms, has_key, future, filter, exec, callable, apply
* Refactor Cheetah.Parser.ArgListR. Tyler Ballance2009-11-161-24/+21
| | | | | | Added a test for ArgList as well; a large amount of code in Cheetah.Parser could do well to be cleaned up, but perhaps another day.
* Refactor raw print statements in accordance with 2to3R. Tyler Ballance2009-11-161-28/+12
| | | | | Removed prints in a couple places entirely, some of this code should likely use the `logging` module instead
* Rename the root package to "cheetah" instead of "src" to follow more ↵R. Tyler Ballance2009-07-161-0/+2662
conventional python package naming