Armin Ronacher [Sat, 26 Apr 2008 14:26:52 +0000 (16:26 +0200)]
there is now a workaround in the compiler that makes sure it's possible to call things with python keywords. {{ foo(class=42) }} works again
--HG--
branch : trunk
Armin Ronacher [Fri, 25 Apr 2008 23:44:14 +0000 (01:44 +0200)]
some performance improvements
--HG--
branch : trunk
Armin Ronacher [Fri, 25 Apr 2008 21:44:14 +0000 (23:44 +0200)]
revamped jinja2 import system. the behavior is less confusing now, but it's not backwards compatible. I like it though ;)
--HG--
branch : trunk
Armin Ronacher [Fri, 25 Apr 2008 10:32:36 +0000 (12:32 +0200)]
`IncludedTemplate` uses getattr rather then getitem now
--HG--
branch : trunk
Armin Ronacher [Fri, 25 Apr 2008 09:44:59 +0000 (11:44 +0200)]
moved `IncludedTemplate` into the regular template API, fixed more unittests
--HG--
branch : trunk
Armin Ronacher [Thu, 24 Apr 2008 22:36:14 +0000 (00:36 +0200)]
moved trans extension from jinja2.i18n to jinja2.ext and fixed some more unittests
--HG--
branch : trunk
Armin Ronacher [Thu, 24 Apr 2008 19:54:44 +0000 (21:54 +0200)]
inheritance uses a less awkward hack for contexts now and subclassing templates is possible
--HG--
branch : trunk
Armin Ronacher [Wed, 23 Apr 2008 20:28:42 +0000 (22:28 +0200)]
removed loop unrolling. for such optimizations we would need a separate syntax tree as far as i can see
--HG--
branch : trunk
Armin Ronacher [Tue, 22 Apr 2008 08:40:26 +0000 (10:40 +0200)]
fixed more unittests
--HG--
branch : trunk
Armin Ronacher [Mon, 21 Apr 2008 06:23:59 +0000 (08:23 +0200)]
fixed setup.py, a type and removed the possibility to use multiple statements per block. The latter makes it easier to write custom tags
--HG--
branch : trunk
Armin Ronacher [Mon, 21 Apr 2008 05:55:52 +0000 (07:55 +0200)]
removed custom nodes again
--HG--
branch : trunk
Armin Ronacher [Sun, 20 Apr 2008 11:27:49 +0000 (13:27 +0200)]
refactored extensions a bit
--HG--
branch : trunk
Armin Ronacher [Sun, 20 Apr 2008 11:11:43 +0000 (13:11 +0200)]
added first code for parser extensions and moved some code in speedups around
--HG--
branch : trunk
Armin Ronacher [Fri, 18 Apr 2008 14:41:52 +0000 (16:41 +0200)]
fixed more unittests
--HG--
branch : trunk
Armin Ronacher [Fri, 18 Apr 2008 09:30:37 +0000 (11:30 +0200)]
loops and `tests` tests pass now
--HG--
branch : trunk
Armin Ronacher [Fri, 18 Apr 2008 08:32:14 +0000 (10:32 +0200)]
removed loop.parent. If this variable is wanted you can get it by doing something like `{% parent_looo = loop %}` before the iteration
--HG--
branch : trunk
Priit Laes [Fri, 18 Apr 2008 07:52:58 +0000 (09:52 +0200)]
samp and friends from char* to const char*
--HG--
branch : trunk
Armin Ronacher [Fri, 18 Apr 2008 07:49:08 +0000 (09:49 +0200)]
fixed a few bugs from the unittests
--HG--
branch : trunk
Armin Ronacher [Fri, 18 Apr 2008 07:17:32 +0000 (09:17 +0200)]
added C escape and tb_set_next functions
--HG--
branch : trunk
Priit Laes [Thu, 17 Apr 2008 19:22:00 +0000 (21:22 +0200)]
improved wordcount by removing pointless test
--HG--
branch : trunk
Priit Laes [Thu, 17 Apr 2008 19:21:04 +0000 (21:21 +0200)]
added missing indent filter
--HG--
branch : trunk
Priit Laes [Thu, 17 Apr 2008 17:04:44 +0000 (19:04 +0200)]
fixed two typos
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 16:44:07 +0000 (18:44 +0200)]
improved undefined behavior
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 13:52:23 +0000 (15:52 +0200)]
simplified loader api and added builtin caching
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 09:50:39 +0000 (11:50 +0200)]
various docstring changes
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 09:23:16 +0000 (11:23 +0200)]
`TemplateData` -> `Markup`
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 09:16:01 +0000 (11:16 +0200)]
updated a few docstrings and removed contrib
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 09:13:40 +0000 (11:13 +0200)]
improved filters
--HG--
branch : trunk
Armin Ronacher [Thu, 17 Apr 2008 08:03:29 +0000 (10:03 +0200)]
added autoescaping
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 21:15:41 +0000 (23:15 +0200)]
added broken example template for debugger testing
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 21:15:15 +0000 (23:15 +0200)]
debugger skips two internal frames now
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 21:10:49 +0000 (23:10 +0200)]
better debugging information. compiler knows about name and filename now (the first one is the load name, the second the estimated filename on the file system if such a name exists)
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 17:43:16 +0000 (19:43 +0200)]
added new python only debug hack
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 13:36:49 +0000 (15:36 +0200)]
ported the tests
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 13:29:52 +0000 (15:29 +0200)]
updated a few filters and improved i18n
--HG--
branch : trunk
Armin Ronacher [Wed, 16 Apr 2008 12:21:57 +0000 (14:21 +0200)]
reimplemented {% trans %}
--HG--
branch : trunk
Armin Ronacher [Tue, 15 Apr 2008 20:10:46 +0000 (22:10 +0200)]
removed unusde __delitem__ for context
--HG--
branch : trunk
Armin Ronacher [Mon, 14 Apr 2008 20:55:32 +0000 (22:55 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main
--HG--
branch : trunk
Armin Ronacher [Mon, 14 Apr 2008 20:53:58 +0000 (22:53 +0200)]
added sandbox and exchageable undefined objects
--HG--
branch : trunk
Christoph Hack [Sun, 13 Apr 2008 23:35:10 +0000 (01:35 +0200)]
continued convertig filters
--HG--
branch : trunk
Armin Ronacher [Sun, 13 Apr 2008 21:50:11 +0000 (23:50 +0200)]
hopefully fixed `Template`
--HG--
branch : trunk
Christoph Hack [Sun, 13 Apr 2008 21:37:02 +0000 (23:37 +0200)]
Automated merge with ssh://dev.pocoo.org/jinja2-main
--HG--
branch : trunk
Christoph Hack [Sun, 13 Apr 2008 21:35:48 +0000 (23:35 +0200)]
converted unit tests, started rewriting filters
--HG--
branch : trunk
Armin Ronacher [Sun, 13 Apr 2008 21:18:05 +0000 (23:18 +0200)]
added super()
--HG--
branch : trunk
Armin Ronacher [Sun, 13 Apr 2008 17:42:53 +0000 (19:42 +0200)]
added globals
--HG--
branch : trunk
Armin Ronacher [Sun, 13 Apr 2008 14:31:08 +0000 (16:31 +0200)]
optimizer can optimize filtered for loops now
--HG--
branch : trunk
Armin Ronacher [Sun, 13 Apr 2008 11:17:21 +0000 (13:17 +0200)]
moved example tests into a folder
--HG--
branch : trunk
rename : bench.py => examples/bench.py
rename : test.py => examples/test.py
rename : test_filter_and_linestatements.py => examples/test_filter_and_linestatements.py
rename : test_loop_filter.py => examples/test_loop_filter.py
Armin Ronacher [Sun, 13 Apr 2008 11:16:50 +0000 (13:16 +0200)]
added loop filtering
--HG--
branch : trunk
Armin Ronacher [Sat, 12 Apr 2008 23:10:18 +0000 (01:10 +0200)]
some more stuff for jinja2
--HG--
branch : trunk
Armin Ronacher [Sat, 12 Apr 2008 20:11:53 +0000 (22:11 +0200)]
filter tag works now
--HG--
branch : trunk
Armin Ronacher [Sat, 12 Apr 2008 12:19:36 +0000 (14:19 +0200)]
added support for new call statement
--HG--
branch : trunk
Armin Ronacher [Sat, 12 Apr 2008 10:02:36 +0000 (12:02 +0200)]
added support for line statement prefixes (cheetah/mako/erb like)
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 22:06:19 +0000 (00:06 +0200)]
fixed include
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 20:21:00 +0000 (22:21 +0200)]
implemented includes
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 17:55:08 +0000 (19:55 +0200)]
basic inheritance works now
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 15:55:05 +0000 (17:55 +0200)]
fixed a bug in the compiler
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 15:15:29 +0000 (17:15 +0200)]
filters are always used as locals now and we don't do any post-loop cleanup
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 14:40:09 +0000 (16:40 +0200)]
w000t. first template
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 14:30:34 +0000 (16:30 +0200)]
work on tha runtime
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 11:58:22 +0000 (13:58 +0200)]
fixed a small bug
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 11:54:28 +0000 (13:54 +0200)]
*now* we have no overhead :)
--HG--
branch : trunk
Armin Ronacher [Fri, 11 Apr 2008 11:47:22 +0000 (13:47 +0200)]
optimized child template code generation. we now have zero overhead for the most common inheritance case
--HG--
branch : trunk
Armin Ronacher [Thu, 10 Apr 2008 18:51:49 +0000 (20:51 +0200)]
removed debug print
--HG--
branch : trunk
Armin Ronacher [Thu, 10 Apr 2008 18:51:23 +0000 (20:51 +0200)]
assignments are traversed in the correct order now
--HG--
branch : trunk
Armin Ronacher [Thu, 10 Apr 2008 18:43:43 +0000 (20:43 +0200)]
fixed one bug with blocks, one to go
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 14:31:20 +0000 (16:31 +0200)]
fixed deepcopy
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 14:29:47 +0000 (16:29 +0200)]
added broken copy method
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 14:14:18 +0000 (16:14 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 14:13:39 +0000 (16:13 +0200)]
nodes have access to environment now
--HG--
branch : trunk
Christoph Hack [Wed, 9 Apr 2008 13:08:11 +0000 (15:08 +0200)]
render templates
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 13:03:33 +0000 (15:03 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 13:03:29 +0000 (15:03 +0200)]
simplified undefined behavior for better compile time processing
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 12:02:55 +0000 (14:02 +0200)]
improved loop unrolling
--HG--
branch : trunk
Christoph Hack [Wed, 9 Apr 2008 12:01:24 +0000 (14:01 +0200)]
merged again
--HG--
branch : trunk
Christoph Hack [Wed, 9 Apr 2008 11:56:30 +0000 (13:56 +0200)]
merged
--HG--
branch : trunk
Christoph Hack [Wed, 9 Apr 2008 10:14:55 +0000 (12:14 +0200)]
converted some filters
--HG--
branch : trunk
Armin Ronacher [Wed, 9 Apr 2008 10:14:24 +0000 (12:14 +0200)]
tuple unpacking at compile time is handled properly now
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 22:40:05 +0000 (00:40 +0200)]
improved static optimizer
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 21:20:22 +0000 (23:20 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 21:17:27 +0000 (23:17 +0200)]
added subscribe-optimation
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 21:01:58 +0000 (23:01 +0200)]
used the new nodetransformer to make mitsuhiko happy
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 19:48:10 +0000 (21:48 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 19:48:05 +0000 (21:48 +0200)]
removed unused import
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 19:46:59 +0000 (21:46 +0200)]
loop unrolling
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 18:21:11 +0000 (20:21 +0200)]
added optimizer
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 16:49:56 +0000 (18:49 +0200)]
updated macro stuff
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 16:09:13 +0000 (18:09 +0200)]
work on the macro stuff
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 15:10:36 +0000 (17:10 +0200)]
merged
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 14:48:30 +0000 (16:48 +0200)]
optimize filters on constant values
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 13:21:53 +0000 (15:21 +0200)]
only import filters to the local namespace if they are called more than once
--HG--
branch : trunk
Armin Ronacher [Tue, 8 Apr 2008 12:47:40 +0000 (14:47 +0200)]
more compiler stuff
--HG--
branch : trunk
Christoph Hack [Tue, 8 Apr 2008 12:46:56 +0000 (14:46 +0200)]
added environment, make filters available locally
--HG--
branch : trunk
Armin Ronacher [Mon, 7 Apr 2008 16:48:23 +0000 (18:48 +0200)]
removed outdated todo list
--HG--
branch : trunk
Armin Ronacher [Mon, 7 Apr 2008 16:46:27 +0000 (18:46 +0200)]
update setup.py so that setup.py develop works
--HG--
branch : trunk
Armin Ronacher [Mon, 7 Apr 2008 16:39:54 +0000 (18:39 +0200)]
added first working pieces of compiler
--HG--
branch : trunk
Armin Ronacher [Mon, 31 Mar 2008 18:01:08 +0000 (20:01 +0200)]
first version of new parser
--HG--
branch : trunk
Armin Ronacher [Mon, 31 Mar 2008 12:18:49 +0000 (14:18 +0200)]
a clean restart
--HG--
branch : trunk
rename : jinja/__init__.py => jinja2/__init__.py
rename : jinja/_debugger.c => jinja2/_debugger.c
rename : jinja/_native.py => jinja2/_native.py
rename : jinja/_speedups.c => jinja2/_speedups.c
rename : jinja/constants.py => jinja2/constants.py
rename : jinja/contrib/__init__.py => jinja2/contrib/__init__.py
rename : jinja/contrib/_djangosupport.py => jinja2/contrib/_djangosupport.py
rename : jinja/contrib/djangosupport.py => jinja2/contrib/djangosupport.py
rename : jinja/datastructure.py => jinja2/datastructure.py
rename : jinja/defaults.py => jinja2/defaults.py
rename : jinja/environment.py => jinja2/environment.py
rename : jinja/exceptions.py => jinja2/exceptions.py
rename : jinja/filters.py => jinja2/filters.py
rename : jinja/lexer.py => jinja2/lexer.py
rename : jinja/loaders.py => jinja2/loaders.py
rename : jinja/nodes.py => jinja2/nodes.py
rename : jinja/parser.py => jinja2/parser.py
rename : jinja/tests.py => jinja2/tests.py
rename : jinja/translators/__init__.py => jinja2/translators/__init__.py
rename : jinja/translators/python.py => jinja2/translators/python.py
rename : jinja/utils.py => jinja2/utils.py
Armin Ronacher [Tue, 25 Mar 2008 13:46:34 +0000 (14:46 +0100)]
jinja django support is py 2.3 compatible now
--HG--
branch : trunk
Armin Ronacher [Tue, 25 Mar 2008 13:36:41 +0000 (14:36 +0100)]
Automated merge with ssh://team@pocoo.org/jinja-main
--HG--
branch : trunk
Armin Ronacher [Tue, 25 Mar 2008 13:36:26 +0000 (14:36 +0100)]
merged
--HG--
branch : trunk