jinja2.git
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

16 years agobootstrapped new documentation
Armin Ronacher [Sun, 27 Apr 2008 19:42:57 +0000 (21:42 +0200)]
bootstrapped new documentation

--HG--
branch : trunk

16 years agoall unittests pass, the special and dependency lookups have their own visitors now...
Armin Ronacher [Sun, 27 Apr 2008 19:28:03 +0000 (21:28 +0200)]
all unittests pass, the special and dependency lookups have their own visitors now, with `self` one can get a reference to the current template and render blocks multiple times.

--HG--
branch : trunk

16 years agoadded spitfire to bench and did some more refactoring
Armin Ronacher [Sat, 26 Apr 2008 21:21:03 +0000 (23:21 +0200)]
added spitfire to bench and did some more refactoring

--HG--
branch : trunk

16 years agoworked on the tests and made undefined fail on comparisons now
Armin Ronacher [Sat, 26 Apr 2008 16:30:19 +0000 (18:30 +0200)]
worked on the tests and made undefined fail on comparisons now

--HG--
branch : trunk

16 years agothere is now a workaround in the compiler that makes sure it's possible to call thing...
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

16 years agosome performance improvements
Armin Ronacher [Fri, 25 Apr 2008 23:44:14 +0000 (01:44 +0200)]
some performance improvements

--HG--
branch : trunk

16 years agorevamped jinja2 import system. the behavior is less confusing now, but it's not...
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

16 years ago`IncludedTemplate` uses getattr rather then getitem now
Armin Ronacher [Fri, 25 Apr 2008 10:32:36 +0000 (12:32 +0200)]
`IncludedTemplate` uses getattr rather then getitem now

--HG--
branch : trunk

16 years agomoved `IncludedTemplate` into the regular template API, fixed more unittests
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

16 years agomoved trans extension from jinja2.i18n to jinja2.ext and fixed some more unittests
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

16 years agoinheritance uses a less awkward hack for contexts now and subclassing templates is...
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

16 years agoremoved loop unrolling. for such optimizations we would need a separate syntax tree...
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

16 years agofixed more unittests
Armin Ronacher [Tue, 22 Apr 2008 08:40:26 +0000 (10:40 +0200)]
fixed more unittests

--HG--
branch : trunk

16 years agofixed setup.py, a type and removed the possibility to use multiple statements per...
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

16 years agoremoved custom nodes again
Armin Ronacher [Mon, 21 Apr 2008 05:55:52 +0000 (07:55 +0200)]
removed custom nodes again

--HG--
branch : trunk

16 years agorefactored extensions a bit
Armin Ronacher [Sun, 20 Apr 2008 11:27:49 +0000 (13:27 +0200)]
refactored extensions a bit

--HG--
branch : trunk

16 years agoadded first code for parser extensions and moved some code in speedups around
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

16 years agofixed more unittests
Armin Ronacher [Fri, 18 Apr 2008 14:41:52 +0000 (16:41 +0200)]
fixed more unittests

--HG--
branch : trunk

16 years agoloops and `tests` tests pass now
Armin Ronacher [Fri, 18 Apr 2008 09:30:37 +0000 (11:30 +0200)]
loops and `tests` tests pass now

--HG--
branch : trunk

16 years agoremoved loop.parent. If this variable is wanted you can get it by doing something...
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

16 years agosamp and friends from char* to const char*
Priit Laes [Fri, 18 Apr 2008 07:52:58 +0000 (09:52 +0200)]
samp and friends from char* to const char*

--HG--
branch : trunk

16 years agofixed a few bugs from the unittests
Armin Ronacher [Fri, 18 Apr 2008 07:49:08 +0000 (09:49 +0200)]
fixed a few bugs from the unittests

--HG--
branch : trunk

16 years agoadded C escape and tb_set_next functions
Armin Ronacher [Fri, 18 Apr 2008 07:17:32 +0000 (09:17 +0200)]
added C escape and tb_set_next functions

--HG--
branch : trunk

16 years agoimproved wordcount by removing pointless test
Priit Laes [Thu, 17 Apr 2008 19:22:00 +0000 (21:22 +0200)]
improved wordcount by removing pointless test

--HG--
branch : trunk

16 years agoadded missing indent filter
Priit Laes [Thu, 17 Apr 2008 19:21:04 +0000 (21:21 +0200)]
added missing indent filter

--HG--
branch : trunk

16 years agofixed two typos
Priit Laes [Thu, 17 Apr 2008 17:04:44 +0000 (19:04 +0200)]
fixed two typos

--HG--
branch : trunk

16 years agoimproved undefined behavior
Armin Ronacher [Thu, 17 Apr 2008 16:44:07 +0000 (18:44 +0200)]
improved undefined behavior

--HG--
branch : trunk

16 years agosimplified loader api and added builtin caching
Armin Ronacher [Thu, 17 Apr 2008 13:52:23 +0000 (15:52 +0200)]
simplified loader api and added builtin caching

--HG--
branch : trunk

16 years agovarious docstring changes
Armin Ronacher [Thu, 17 Apr 2008 09:50:39 +0000 (11:50 +0200)]
various docstring changes

--HG--
branch : trunk

16 years ago`TemplateData` -> `Markup`
Armin Ronacher [Thu, 17 Apr 2008 09:23:16 +0000 (11:23 +0200)]
`TemplateData` -> `Markup`

--HG--
branch : trunk

16 years agoupdated a few docstrings and removed contrib
Armin Ronacher [Thu, 17 Apr 2008 09:16:01 +0000 (11:16 +0200)]
updated a few docstrings and removed contrib

--HG--
branch : trunk

16 years agoimproved filters
Armin Ronacher [Thu, 17 Apr 2008 09:13:40 +0000 (11:13 +0200)]
improved filters

--HG--
branch : trunk

16 years agoadded autoescaping
Armin Ronacher [Thu, 17 Apr 2008 08:03:29 +0000 (10:03 +0200)]
added autoescaping

--HG--
branch : trunk

16 years agoadded broken example template for debugger testing
Armin Ronacher [Wed, 16 Apr 2008 21:15:41 +0000 (23:15 +0200)]
added broken example template for debugger testing

--HG--
branch : trunk

16 years agodebugger skips two internal frames now
Armin Ronacher [Wed, 16 Apr 2008 21:15:15 +0000 (23:15 +0200)]
debugger skips two internal frames now

--HG--
branch : trunk

16 years agobetter debugging information. compiler knows about name and filename now (the first...
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

16 years agoadded new python only debug hack
Armin Ronacher [Wed, 16 Apr 2008 17:43:16 +0000 (19:43 +0200)]
added new python only debug hack

--HG--
branch : trunk

16 years agoported the tests
Armin Ronacher [Wed, 16 Apr 2008 13:36:49 +0000 (15:36 +0200)]
ported the tests

--HG--
branch : trunk

16 years agoupdated a few filters and improved i18n
Armin Ronacher [Wed, 16 Apr 2008 13:29:52 +0000 (15:29 +0200)]
updated a few filters and improved i18n

--HG--
branch : trunk

16 years agoreimplemented {% trans %}
Armin Ronacher [Wed, 16 Apr 2008 12:21:57 +0000 (14:21 +0200)]
reimplemented {% trans %}

--HG--
branch : trunk

16 years agoremoved unusde __delitem__ for context
Armin Ronacher [Tue, 15 Apr 2008 20:10:46 +0000 (22:10 +0200)]
removed unusde __delitem__ for context

--HG--
branch : trunk

16 years agoAutomated merge with ssh://team@pocoo.org/jinja2-main
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

16 years agoadded sandbox and exchageable undefined objects
Armin Ronacher [Mon, 14 Apr 2008 20:53:58 +0000 (22:53 +0200)]
added sandbox and exchageable undefined objects

--HG--
branch : trunk

16 years agocontinued convertig filters
Christoph Hack [Sun, 13 Apr 2008 23:35:10 +0000 (01:35 +0200)]
continued convertig filters

--HG--
branch : trunk

16 years agohopefully fixed `Template`
Armin Ronacher [Sun, 13 Apr 2008 21:50:11 +0000 (23:50 +0200)]
hopefully fixed `Template`

--HG--
branch : trunk

16 years agoAutomated merge with ssh://dev.pocoo.org/jinja2-main
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

16 years agoconverted unit tests, started rewriting filters
Christoph Hack [Sun, 13 Apr 2008 21:35:48 +0000 (23:35 +0200)]
converted unit tests, started rewriting filters

--HG--
branch : trunk

16 years agoadded super()
Armin Ronacher [Sun, 13 Apr 2008 21:18:05 +0000 (23:18 +0200)]
added super()

--HG--
branch : trunk

16 years agoadded globals
Armin Ronacher [Sun, 13 Apr 2008 17:42:53 +0000 (19:42 +0200)]
added globals

--HG--
branch : trunk

16 years agooptimizer can optimize filtered for loops now
Armin Ronacher [Sun, 13 Apr 2008 14:31:08 +0000 (16:31 +0200)]
optimizer can optimize filtered for loops now

--HG--
branch : trunk

16 years agomoved example tests into a folder
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

16 years agoadded loop filtering
Armin Ronacher [Sun, 13 Apr 2008 11:16:50 +0000 (13:16 +0200)]
added loop filtering

--HG--
branch : trunk

16 years agosome more stuff for jinja2
Armin Ronacher [Sat, 12 Apr 2008 23:10:18 +0000 (01:10 +0200)]
some more stuff for jinja2

--HG--
branch : trunk

16 years agofilter tag works now
Armin Ronacher [Sat, 12 Apr 2008 20:11:53 +0000 (22:11 +0200)]
filter tag works now

--HG--
branch : trunk

16 years agoadded support for new call statement
Armin Ronacher [Sat, 12 Apr 2008 12:19:36 +0000 (14:19 +0200)]
added support for new call statement

--HG--
branch : trunk

16 years agoadded support for line statement prefixes (cheetah/mako/erb like)
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

16 years agofixed include
Armin Ronacher [Fri, 11 Apr 2008 22:06:19 +0000 (00:06 +0200)]
fixed include

--HG--
branch : trunk

16 years agoimplemented includes
Armin Ronacher [Fri, 11 Apr 2008 20:21:00 +0000 (22:21 +0200)]
implemented includes

--HG--
branch : trunk

16 years agobasic inheritance works now
Armin Ronacher [Fri, 11 Apr 2008 17:55:08 +0000 (19:55 +0200)]
basic inheritance works now

--HG--
branch : trunk