Commit Graph

43 Commits

Author SHA1 Message Date
JamesParrott
0c0a3d02d1
fix Jinja syntax in example 2024-12-18 09:44:30 -08:00
David Lord
9b86bbce63
rename default branch in files 2021-05-11 16:24:15 -07:00
David Lord
2a8515d2e5
apply pyupgrade and f-strings 2020-02-05 08:44:15 -08:00
David Lord
4a59ac9514
Revert "rename imports to jinja"
This reverts commit 1167525b73.
2020-01-26 21:12:52 -08:00
David Lord
1167525b73
rename imports to jinja 2020-01-10 15:30:16 -08:00
David Lord
e492255f27
remove old scripts and examples 2020-01-10 12:58:38 -08:00
David Lord
bb6216ea30
apply flake8 2020-01-10 10:40:52 -08:00
David Lord
04c8787155
apply black 2020-01-10 07:54:39 -08:00
David Lord
d177eeb295
apply reorder-python-imports 2020-01-10 07:54:39 -08:00
cclauss
82a8ea4f3b Use print() function in both Python2 and Python 3 2019-10-27 13:05:59 +01:00
David Lord
57626a000a
use "Jinja" instead of "Jinja2" 2019-10-23 12:35:53 -07:00
Kartheek Lenkala
29b08c85a2 change py2 print statements to py3 2015-03-22 14:25:15 +01:00
Armin Ronacher
ff115c4e7b Fixed a broken example. This fies #45 2011-07-07 15:42:25 +02:00
Rodrigo Moraes
6cc2b236ea Added benchmark for chameleon/chameleon-genshi.
--HG--
branch : trunk
2010-08-17 12:08:01 -03:00
Armin Ronacher
5a8d49689a Updated rwbench
--HG--
branch : trunk
2010-07-01 12:15:35 +02:00
Armin Ronacher
850629f1c3 Fixed the profile.py file and removed a useless newline call
--HG--
branch : trunk
2010-06-06 15:14:55 +02:00
Armin Ronacher
f60232d52b Updated examples to use Django cached.
--HG--
branch : trunk
2010-06-05 14:31:27 +02:00
Armin Ronacher
b4da9bee75 Added tornado templates to benchmark.
--HG--
branch : trunk
2009-09-10 13:58:52 -07:00
Armin Ronacher
d416a97260 Improved Jinja's debugging support by introducing "@internalcode" which marks code objects that are skipped on tracebacks. Also template errors are now translated as well to help the pylons debugger.
--HG--
branch : trunk
2009-02-24 22:58:00 +01:00
Armin Ronacher
62ccd1be3d Copyright switch to "The Jinja Team".
--HG--
branch : trunk
2009-01-04 14:26:19 +01:00
Armin Ronacher
c347ed0f45 Unified some code in the super/template reference system.
--HG--
branch : trunk
2008-09-20 12:04:53 +02:00
Armin Ronacher
0c4f75795f and added genshi to rwbench too. want to see how much the GSOC improves performance :)
--HG--
branch : trunk
2008-05-25 20:51:09 +02:00
Armin Ronacher
f3d6a734f0 implemented rwbench for django (uh. that sucks)
--HG--
branch : trunk
2008-05-25 12:52:11 +02:00
Armin Ronacher
5411ce72a7 even more tests, fixed severe bug with autoescaping.
--HG--
branch : trunk
2008-05-25 11:36:22 +02:00
Armin Ronacher
ed1e0d4a8b small refactoring
--HG--
branch : trunk
2008-05-18 20:25:28 +02:00
Armin Ronacher
a7f016dae2 added disclaimer to rwbench and fixed error reporting for one of the four Output cases
--HG--
branch : trunk
2008-05-16 00:22:40 +02:00
Armin Ronacher
dc02b64d62 added a semi realworld benchmark (jinja2 and mako)
--HG--
branch : trunk
2008-05-15 22:47:27 +02:00
Armin Ronacher
09c002e6fa added a function to parse assign targes and documented it for the extension interface
--HG--
branch : trunk
2008-05-10 22:21:30 +02:00
Armin Ronacher
612b3a88e2 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
2008-05-07 15:39:39 +02:00
Armin Ronacher
19cf9c2051 small performance improvements
--HG--
branch : trunk
2008-05-01 12:49:53 +02:00
Armin Ronacher
c9705c245d 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
2008-04-27 21:28:03 +02:00
Armin Ronacher
32a910f041 added spitfire to bench and did some more refactoring
--HG--
branch : trunk
2008-04-26 23:21:03 +02:00
Armin Ronacher
2feed1d5e2 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
2008-04-26 16:26:52 +02:00
Armin Ronacher
de6bf71e8f some performance improvements
--HG--
branch : trunk
2008-04-26 01:44:14 +02:00
Armin Ronacher
0553093657 refactored extensions a bit
--HG--
branch : trunk
2008-04-20 13:27:49 +02:00
Armin Ronacher
f59bac20df added first code for parser extensions and moved some code in speedups around
--HG--
branch : trunk
2008-04-20 13:11:43 +02:00
Armin Ronacher
e6aa662ae2 added broken example template for debugger testing
--HG--
branch : trunk
2008-04-16 23:15:41 +02:00
Armin Ronacher
ba3757ba35 added new python only debug hack
--HG--
branch : trunk
2008-04-16 19:43:16 +02:00
Armin Ronacher
5f5148875b updated a few filters and improved i18n
--HG--
branch : trunk
2008-04-16 15:29:52 +02:00
Armin Ronacher
2e9396ba8f reimplemented {% trans %}
--HG--
branch : trunk
2008-04-16 14:21:57 +02:00
Armin Ronacher
62f8a2984c added super()
--HG--
branch : trunk
2008-04-13 23:18:05 +02:00
Armin Ronacher
625215e915 optimizer can optimize filtered for loops now
--HG--
branch : trunk
2008-04-13 16:31:08 +02:00
Armin Ronacher
2e7b54f7d8 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
2008-04-13 13:17:21 +02:00