jinja2.git
16 years agoadded loopcontrols extension and added unittests for it
Armin Ronacher [Fri, 23 May 2008 14:37:28 +0000 (16:37 +0200)]
added loopcontrols extension and added unittests for it

--HG--
branch : trunk

16 years agorefactored compiler and improved identifier handling for for-loops
Armin Ronacher [Fri, 23 May 2008 14:12:47 +0000 (16:12 +0200)]
refactored compiler and improved identifier handling for for-loops

--HG--
branch : trunk

16 years agovariables starting with one or more underscores are not exported
Armin Ronacher [Thu, 22 May 2008 22:51:58 +0000 (00:51 +0200)]
variables starting with one or more underscores are not exported

--HG--
branch : trunk

16 years agolex includes whitespace now which makes it a lot more useful
Armin Ronacher [Thu, 22 May 2008 19:28:32 +0000 (21:28 +0200)]
lex includes whitespace now which makes it a lot more useful

--HG--
branch : trunk

16 years agocall is now handled like a regular unnamed macro, refactored compiled a bit
Armin Ronacher [Thu, 22 May 2008 18:28:21 +0000 (20:28 +0200)]
call is now handled like a regular unnamed macro, refactored compiled a bit

--HG--
branch : trunk

16 years agofixed babel entry point
Armin Ronacher [Tue, 20 May 2008 15:52:52 +0000 (17:52 +0200)]
fixed babel entry point

--HG--
branch : trunk

16 years agomore thread safety in LRUCache
Armin Ronacher [Mon, 19 May 2008 09:20:41 +0000 (11:20 +0200)]
more thread safety in LRUCache

--HG--
branch : trunk

16 years agoadded unittest for the latest fixed bug
Armin Ronacher [Mon, 19 May 2008 07:28:17 +0000 (09:28 +0200)]
added unittest for the latest fixed bug

--HG--
branch : trunk

16 years agoimproved thread safety of the LRUCache and fixed a bug in for loops
Armin Ronacher [Mon, 19 May 2008 07:25:57 +0000 (09:25 +0200)]
improved thread safety of the LRUCache and fixed a bug in for loops

--HG--
branch : trunk

16 years agotemporary identifiers are prefixed with "t_" now and the _node_setup_finished hack...
Armin Ronacher [Mon, 19 May 2008 06:37:19 +0000 (08:37 +0200)]
temporary identifiers are prefixed with "t_" now and the _node_setup_finished hack went away

--HG--
branch : trunk

16 years agofixed an embarrassing mistake in the documentation
Armin Ronacher [Sun, 18 May 2008 22:23:37 +0000 (00:23 +0200)]
fixed an embarrassing mistake in the documentation

--HG--
branch : trunk

16 years agosome more cleaning up
Armin Ronacher [Sun, 18 May 2008 21:14:14 +0000 (23:14 +0200)]
some more cleaning up

--HG--
branch : trunk

16 years agosome small documentation fixes
Armin Ronacher [Sun, 18 May 2008 18:29:32 +0000 (20:29 +0200)]
some small documentation fixes

--HG--
branch : trunk

16 years agosmall refactoring
Armin Ronacher [Sun, 18 May 2008 18:25:28 +0000 (20:25 +0200)]
small refactoring

--HG--
branch : trunk

16 years agoremoved esection about Jinja semantics as we don't have local aliasing currently
Armin Ronacher [Sat, 17 May 2008 12:17:15 +0000 (14:17 +0200)]
removed esection about Jinja semantics as we don't have local aliasing currently

--HG--
branch : trunk

16 years agoadded `ImmutableSandboxedEnvironment`.
Armin Ronacher [Sat, 17 May 2008 11:55:37 +0000 (13:55 +0200)]
added `ImmutableSandboxedEnvironment`.

--HG--
branch : trunk

16 years agosubscribe doesn't eat up unicode errors any longer
Armin Ronacher [Fri, 16 May 2008 22:34:11 +0000 (00:34 +0200)]
subscribe doesn't eat up unicode errors any longer

--HG--
branch : trunk

16 years agoremoved attribute local aliasing again because that implementation was broken
Armin Ronacher [Fri, 16 May 2008 07:27:51 +0000 (09:27 +0200)]
removed attribute local aliasing again because that implementation was broken

--HG--
branch : trunk

16 years agoimproved exception system. now both name (load name) and filename are passed.
Armin Ronacher [Fri, 16 May 2008 07:11:39 +0000 (09:11 +0200)]
improved exception system.  now both name (load name) and filename are passed.

--HG--
branch : trunk

16 years agoadded disclaimer to rwbench and fixed error reporting for one of the four Output...
Armin Ronacher [Thu, 15 May 2008 22:22:40 +0000 (00:22 +0200)]
added disclaimer to rwbench and fixed error reporting for one of the four Output cases

--HG--
branch : trunk

16 years agovoid -> do
Armin Ronacher [Thu, 15 May 2008 21:26:52 +0000 (23:26 +0200)]
void -> do

--HG--
branch : trunk

16 years agosimplified from imports
Armin Ronacher [Thu, 15 May 2008 21:18:07 +0000 (23:18 +0200)]
simplified from imports

--HG--
branch : trunk

16 years agoadded a semi realworld benchmark (jinja2 and mako)
Armin Ronacher [Thu, 15 May 2008 20:47:27 +0000 (22:47 +0200)]
added a semi realworld benchmark (jinja2 and mako)

--HG--
branch : trunk

16 years agofixed bug with parameter parsing
Armin Ronacher [Thu, 15 May 2008 14:22:07 +0000 (16:22 +0200)]
fixed bug with parameter parsing

--HG--
branch : trunk

16 years agofixed error on static subscribe aliasing if the subscription argument was a variable
Armin Ronacher [Thu, 15 May 2008 13:00:45 +0000 (15:00 +0200)]
fixed error on static subscribe aliasing if the subscription argument was a variable

--HG--
branch : trunk

16 years agoremoved the notice about names in imported macros. that's documented as part of the...
Armin Ronacher [Thu, 15 May 2008 12:48:31 +0000 (14:48 +0200)]
removed the notice about names in imported macros. that's documented as part of the import statement.

--HG--
branch : trunk

16 years agofixed error reporting for filtered statements
Armin Ronacher [Thu, 15 May 2008 11:23:26 +0000 (13:23 +0200)]
fixed error reporting for filtered statements

--HG--
branch : trunk

16 years agoreversed the internal structure for blocks
Armin Ronacher [Thu, 15 May 2008 10:22:28 +0000 (12:22 +0200)]
reversed the internal structure for blocks

--HG--
branch : trunk

16 years agoadded support for local aliasing of some attributes. the technique used is not very...
Armin Ronacher [Thu, 15 May 2008 09:04:14 +0000 (11:04 +0200)]
added support for local aliasing of some attributes.  the technique used is not very good but covers at least some of the more common use cases

--HG--
branch : trunk

16 years agothe two escape implementations work the same now, updated jinja2-debug to load the...
Armin Ronacher [Wed, 14 May 2008 16:10:41 +0000 (18:10 +0200)]
the two escape implementations work the same now, updated jinja2-debug to load the i18n extension

--HG--
branch : trunk

16 years agoimproved subscribe
Armin Ronacher [Tue, 13 May 2008 13:35:47 +0000 (15:35 +0200)]
improved subscribe

--HG--
branch : trunk

16 years agoremoved unused imports
Armin Ronacher [Tue, 13 May 2008 07:12:27 +0000 (09:12 +0200)]
removed unused imports

--HG--
branch : trunk

16 years agodocumented set changes
Armin Ronacher [Mon, 12 May 2008 23:05:20 +0000 (01:05 +0200)]
documented set changes

--HG--
branch : trunk

16 years agoAutomated merge with ssh://team@pocoo.org/jinja2-main
Armin Ronacher [Mon, 12 May 2008 23:03:17 +0000 (01:03 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main

--HG--
branch : trunk

16 years agoswitched back to explicit set for assignments. {% foo = 42 %} becomes {% set foo...
Armin Ronacher [Mon, 12 May 2008 23:03:08 +0000 (01:03 +0200)]
switched back to explicit set for assignments.  {% foo = 42 %} becomes {% set foo = 42 %} and {% foo.something() }} becomes {{ void(foo.something() }} with this commit.

--HG--
branch : trunk

16 years agoimproved variable exporting, added TODO file
Armin Ronacher [Mon, 12 May 2008 07:00:03 +0000 (09:00 +0200)]
improved variable exporting, added TODO file

--HG--
branch : trunk

16 years agodocumented recursive loops
Armin Ronacher [Sun, 11 May 2008 21:55:02 +0000 (23:55 +0200)]
documented recursive loops

--HG--
branch : trunk

16 years agomade the recursive for loop test easier to debug
Armin Ronacher [Sun, 11 May 2008 21:43:07 +0000 (23:43 +0200)]
made the recursive for loop test easier to debug

--HG--
branch : trunk

16 years agoadded unittest for recursive for loop
Armin Ronacher [Sun, 11 May 2008 21:42:19 +0000 (23:42 +0200)]
added unittest for recursive for loop

--HG--
branch : trunk

16 years agoreadded support for recursive for-loops
Armin Ronacher [Sun, 11 May 2008 21:21:16 +0000 (23:21 +0200)]
readded support for recursive for-loops

--HG--
branch : trunk

16 years agoadded parsing code for "for item in seq recursive" and improved parser interface...
Armin Ronacher [Sun, 11 May 2008 20:20:51 +0000 (22:20 +0200)]
added parsing code for "for item in seq recursive" and improved parser interface a bit

--HG--
branch : trunk

16 years agofixed a bug in extension handling
Armin Ronacher [Sun, 11 May 2008 17:48:12 +0000 (19:48 +0200)]
fixed a bug in extension handling

--HG--
branch : trunk

16 years agoAnother typo.
Georg Brandl [Sun, 11 May 2008 10:56:50 +0000 (12:56 +0200)]
Another typo.

--HG--
branch : trunk

16 years agoFix two typos.
Georg Brandl [Sun, 11 May 2008 10:30:19 +0000 (12:30 +0200)]
Fix two typos.

--HG--
branch : trunk

16 years agoBacked out changeset 6afb554797b6, which added unicode identifier support. This...
Armin Ronacher [Sat, 10 May 2008 22:30:43 +0000 (00:30 +0200)]
Backed out changeset 6afb554797b6, which added unicode identifier support.  This doesn't work in reality under Python 2.6 properly.

--HG--
branch : trunk

16 years agoadded support for unicode identifiers
Armin Ronacher [Sat, 10 May 2008 22:18:35 +0000 (00:18 +0200)]
added support for unicode identifiers

--HG--
branch : trunk

16 years agoadded support for dotted names in tests and filters
Armin Ronacher [Sat, 10 May 2008 21:36:28 +0000 (23:36 +0200)]
added support for dotted names in tests and filters

--HG--
branch : trunk

16 years agoadded a function to parse assign targes and documented it for the extension interface
Armin Ronacher [Sat, 10 May 2008 20:21:30 +0000 (22:21 +0200)]
added a function to parse assign targes and documented it for the extension interface

--HG--
branch : trunk

16 years agoadded djangojinja2 extension
Armin Ronacher [Fri, 9 May 2008 13:33:18 +0000 (15:33 +0200)]
added djangojinja2 extension

--HG--
branch : trunk

16 years agoremoved wsgi and django from the integration page, wsgi is not interesting and there...
Armin Ronacher [Fri, 9 May 2008 12:38:09 +0000 (14:38 +0200)]
removed wsgi and django from the integration page, wsgi is not interesting and there is no django support module currently. pylons is now documented.

--HG--
branch : trunk

16 years agoadded TextMate bundle and vim syntax files
Armin Ronacher [Fri, 9 May 2008 09:54:07 +0000 (11:54 +0200)]
added TextMate bundle and vim syntax files

--HG--
branch : trunk

16 years agomore updates on the extension API
Armin Ronacher [Thu, 8 May 2008 21:57:56 +0000 (23:57 +0200)]
more updates on the extension API

--HG--
branch : trunk

16 years agoFirst extension interface documentation and updates in that interface
Armin Ronacher [Thu, 8 May 2008 09:03:10 +0000 (11:03 +0200)]
First extension interface documentation and updates in that interface

--HG--
branch : trunk

16 years agomoved example code around
Armin Ronacher [Wed, 7 May 2008 13:39:39 +0000 (15:39 +0200)]
moved example code around

--HG--
branch : trunk
rename : examples/cycle.py => examples/basic/cycle.py
rename : examples/debugger.py => examples/basic/debugger.py
rename : examples/inheritance.py => examples/basic/inheritance.py
rename : examples/templates/broken.html => examples/basic/templates/broken.html
rename : examples/test.py => examples/basic/test.py
rename : examples/test_filter_and_linestatements.py => examples/basic/test_filter_and_linestatements.py
rename : examples/test_loop_filter.py => examples/basic/test_loop_filter.py
rename : examples/translate.py => examples/basic/translate.py

16 years agodocumentation update
Armin Ronacher [Wed, 7 May 2008 10:17:18 +0000 (12:17 +0200)]
documentation update

--HG--
branch : trunk

16 years agosome documentation updates
Armin Ronacher [Wed, 7 May 2008 06:42:11 +0000 (08:42 +0200)]
some documentation updates

--HG--
branch : trunk

16 years agoIndented environment parameters in docstring so that the sphinx HTML output looks...
Armin Ronacher [Tue, 6 May 2008 14:54:22 +0000 (16:54 +0200)]
Indented environment parameters in docstring so that the sphinx HTML output looks nicer

--HG--
branch : trunk

16 years agoadded nicher margins to jinja docs
Armin Ronacher [Tue, 6 May 2008 14:44:39 +0000 (16:44 +0200)]
added nicher margins to jinja docs

--HG--
branch : trunk

16 years agosome documentation improvements, jinja escapes " and ' now, both into charpoints...
Armin Ronacher [Tue, 6 May 2008 14:04:10 +0000 (16:04 +0200)]
some documentation improvements, jinja escapes " and ' now, both into charpoints and no named entities for html 3.2 support ;-)

--HG--
branch : trunk

16 years agoand another small style update for the docs
Armin Ronacher [Tue, 6 May 2008 10:27:16 +0000 (12:27 +0200)]
and another small style update for the docs

--HG--
branch : trunk

16 years agoFixed bug that caused "for item in seq if expr" to fail if the loop is not accessing...
Armin Ronacher [Tue, 6 May 2008 10:17:23 +0000 (12:17 +0200)]
Fixed bug that caused "for item in seq if expr" to fail if the loop is not accessing loop

--HG--
branch : trunk

16 years agodocumentation style updates, added print css
Armin Ronacher [Tue, 6 May 2008 10:14:23 +0000 (12:14 +0200)]
documentation style updates, added print css

--HG--
branch : trunk

16 years agoadded author information and fixed small off-by-one bug
Armin Ronacher [Mon, 5 May 2008 20:06:21 +0000 (22:06 +0200)]
added author information and fixed small off-by-one bug

--HG--
branch : trunk

16 years agoadded macro for char* to Py_UNICODE conversion
Armin Ronacher [Mon, 5 May 2008 20:00:46 +0000 (22:00 +0200)]
added macro for char* to Py_UNICODE conversion

--HG--
branch : trunk

16 years agousing a table for _speedups escape
Mickaël Guérin [Mon, 5 May 2008 15:08:51 +0000 (17:08 +0200)]
using a table for _speedups escape

--HG--
branch : trunk

16 years agoadded intro text to doc index
Armin Ronacher [Mon, 5 May 2008 15:08:34 +0000 (17:08 +0200)]
added intro text to doc index

--HG--
branch : trunk

16 years agofixed a bug with filtered loops
Armin Ronacher [Sun, 4 May 2008 20:43:19 +0000 (22:43 +0200)]
fixed a bug with filtered loops

--HG--
branch : trunk

16 years agosome small documentation style fixes
Armin Ronacher [Sun, 4 May 2008 18:48:03 +0000 (20:48 +0200)]
some small documentation style fixes

--HG--
branch : trunk

16 years agoadded style for html documentation
Armin Ronacher [Sun, 4 May 2008 17:56:34 +0000 (19:56 +0200)]
added style for html documentation

--HG--
branch : trunk

16 years agoextra security
Armin Ronacher [Sun, 4 May 2008 16:25:02 +0000 (18:25 +0200)]
extra security

--HG--
branch : trunk

16 years agoimproved sandbox, added proper striptags and updated documentation to latest sphinx...
Armin Ronacher [Sun, 4 May 2008 10:31:48 +0000 (12:31 +0200)]
improved sandbox, added proper striptags and updated documentation to latest sphinx changes

--HG--
branch : trunk

16 years agofixed template reloading
Armin Ronacher [Sat, 3 May 2008 23:11:14 +0000 (01:11 +0200)]
fixed template reloading

--HG--
branch : trunk

16 years agoAutomated merge with ssh://team@pocoo.org/jinja2-main
Armin Ronacher [Sat, 3 May 2008 20:27:46 +0000 (22:27 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main

--HG--
branch : trunk

16 years agoadded missing import
Benjamin Wiegand [Sat, 3 May 2008 20:27:29 +0000 (22:27 +0200)]
added missing import

--HG--
branch : trunk

16 years agochanged wordcount filter once more
Armin Ronacher [Sat, 3 May 2008 17:04:02 +0000 (19:04 +0200)]
changed wordcount filter once more

--HG--
branch : trunk

16 years agoupdated filters: wordwraps uses the wordwrap module and urlize marks the result as...
Armin Ronacher [Sat, 3 May 2008 15:10:05 +0000 (17:10 +0200)]
updated filters: wordwraps uses the wordwrap module and urlize marks the result as HTML now if in autoescape mode

--HG--
branch : trunk

16 years agomoved concat to utils, fixed a few docstrings, fixed memory leak in _speedups.escape
Armin Ronacher [Sat, 3 May 2008 08:15:31 +0000 (10:15 +0200)]
moved concat to utils, fixed a few docstrings, fixed memory leak in _speedups.escape

--HG--
branch : trunk

16 years agoadded unittest for context import/includes
Armin Ronacher [Fri, 2 May 2008 21:51:32 +0000 (23:51 +0200)]
added unittest for context import/includes

--HG--
branch : trunk

16 years agoadded "with context" or "without context" import/include modifiers
Armin Ronacher [Fri, 2 May 2008 18:04:32 +0000 (20:04 +0200)]
added "with context" or "without context" import/include modifiers

--HG--
branch : trunk

16 years agomoved code from datastructure into lexer as the module only holds code for the lexer...
Armin Ronacher [Thu, 1 May 2008 20:59:47 +0000 (22:59 +0200)]
moved code from datastructure into lexer as the module only holds code for the lexer and is not that big.

--HG--
branch : trunk

16 years agoreactivated syntax error translations
Armin Ronacher [Thu, 1 May 2008 20:20:38 +0000 (22:20 +0200)]
reactivated syntax error translations

--HG--
branch : trunk

16 years agoJinja doesn't have keywords any longer. The reason for this radical change is that...
Armin Ronacher [Thu, 1 May 2008 20:20:05 +0000 (22:20 +0200)]
Jinja doesn't have keywords any longer.  The reason for this radical change is that the previous keywords where incompatible with the python keywords which made it impossible to name a variable "filter" or call a function with such a keyword parameter.

--HG--
branch : trunk

16 years agomade LRUCache thread safe -.-
Armin Ronacher [Thu, 1 May 2008 16:40:15 +0000 (18:40 +0200)]
made LRUCache thread safe -.-

--HG--
branch : trunk

16 years agoFixed typos in documentation
Lukas Meuser [Thu, 1 May 2008 16:19:57 +0000 (18:19 +0200)]
Fixed typos in documentation

--HG--
branch : trunk

16 years agoadded cache_clear function
Armin Ronacher [Thu, 1 May 2008 16:19:16 +0000 (18:19 +0200)]
added cache_clear function

--HG--
branch : trunk

16 years agoimproved debugging for syntax errors
Armin Ronacher [Thu, 1 May 2008 11:14:30 +0000 (13:14 +0200)]
improved debugging for syntax errors

--HG--
branch : trunk

16 years agosmall performance improvements
Armin Ronacher [Thu, 1 May 2008 10:49:53 +0000 (12:49 +0200)]
small performance improvements

--HG--
branch : trunk

16 years agomoved caching from loaders to environment and added environment overlays
Armin Ronacher [Wed, 30 Apr 2008 11:03:59 +0000 (13:03 +0200)]
moved caching from loaders to environment and added environment overlays

--HG--
branch : trunk

16 years agoagain documentation updates fixed another python 2.4 bug. Imports are not evaluated...
Armin Ronacher [Tue, 29 Apr 2008 11:43:16 +0000 (13:43 +0200)]
again documentation updates fixed another python 2.4 bug.  Imports are not evaluated with the template context any longer which makes it possible to keep them in memory

--HG--
branch : trunk

16 years agoadded python2.4 workaround for unicode.join bug
Armin Ronacher [Mon, 28 Apr 2008 18:49:51 +0000 (20:49 +0200)]
added python2.4 workaround for unicode.join bug

--HG--
branch : trunk

16 years agofixed xmlattr again
Armin Ronacher [Mon, 28 Apr 2008 17:59:02 +0000 (19:59 +0200)]
fixed xmlattr again

--HG--
branch : trunk

16 years agoupdated jinja docs
Armin Ronacher [Mon, 28 Apr 2008 17:57:40 +0000 (19:57 +0200)]
updated jinja docs

--HG--
branch : trunk

16 years agofixed another python2.4 bug
Armin Ronacher [Mon, 28 Apr 2008 16:30:27 +0000 (18:30 +0200)]
fixed another python2.4 bug

--HG--
branch : trunk

16 years agoAutomated merge with ssh://team@pocoo.org/jinja2-main
Armin Ronacher [Mon, 28 Apr 2008 16:18:27 +0000 (18:18 +0200)]
Automated merge with ssh://team@pocoo.org/jinja2-main

--HG--
branch : trunk

16 years agopython2.4 compatibility and doc updates
Armin Ronacher [Mon, 28 Apr 2008 16:18:16 +0000 (18:18 +0200)]
python2.4 compatibility and doc updates

--HG--
branch : trunk

16 years agosmall improvement
Benjamin Wiegand [Mon, 28 Apr 2008 16:09:27 +0000 (18:09 +0200)]
small improvement

--HG--
branch : trunk

16 years agofixed some NameErrors
Benjamin Wiegand [Mon, 28 Apr 2008 16:07:52 +0000 (18:07 +0200)]
fixed some NameErrors

--HG--
branch : trunk

16 years agomore docs and fixed bug in parser that assigned lineno for ExprStmt wrong
Armin Ronacher [Mon, 28 Apr 2008 14:14:03 +0000 (16:14 +0200)]
more docs and fixed bug in parser that assigned lineno for ExprStmt wrong

--HG--
branch : trunk

16 years agofirst version of the jinja2 docs
Armin Ronacher [Mon, 28 Apr 2008 11:52:21 +0000 (13:52 +0200)]
first version of the jinja2 docs

--HG--
branch : trunk

16 years agoautoescaping is separate from finalize now and Markup is completely ignored if the...
Armin Ronacher [Mon, 28 Apr 2008 10:20:12 +0000 (12:20 +0200)]
autoescaping is separate from finalize now and Markup is completely ignored if the environment is not in autoescape mode

--HG--
branch : trunk