]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
Removed mention of speedup module and rewrote docs for markupsafe dependency
authorArmin Ronacher <armin.ronacher@active-4.com>
Sun, 19 May 2013 12:51:47 +0000 (13:51 +0100)
committerArmin Ronacher <armin.ronacher@active-4.com>
Sun, 19 May 2013 12:51:47 +0000 (13:51 +0100)
docs/faq.rst
docs/intro.rst

index f66bd81f7f40085379e761b0ffc5b0ea243e9f55..4db507991a554778618ad888458be945daa9eef4 100644 (file)
@@ -125,24 +125,6 @@ instead that one can assign to a variable by using set::
 
     {% set comments = get_latest_comments() %}
 
-What is the speedups module and why is it missing?
---------------------------------------------------
-
-To achieve a good performance with automatic escaping enabled, the escaping
-function was also implemented in pure C in older Jinja2 releases and used if
-Jinja2 was installed with the speedups module.
-
-Because this feature itself is very useful for non-template engines as
-well it was moved into a separate project on PyPI called `MarkupSafe`_.
-
-Jinja2 no longer ships with a C implementation of it but only the pure
-Python implementation.  It will however check if MarkupSafe is available
-and installed, and if it is, use the Markup class from MarkupSafe.
-
-So if you want the speedups, just install MarkupSafe.
-
-.. _MarkupSafe: http://pypi.python.org/pypi/MarkupSafe
-
 My tracebacks look weird.  What's happening?
 --------------------------------------------
 
index 5d7e9f8fca554547146b49a1733a01f072061aef..080f5c5bc627af56a364e2dfbc1928a910a38173 100644 (file)
@@ -72,39 +72,15 @@ has the advantage that the C extensions are compiled.
 .. _git: http://git-scm.org/
 
 
-More Speed with MarkupSafe
-~~~~~~~~~~~~~~~~~~~~~~~~~~
+MarkupSafe Dependency
+~~~~~~~~~~~~~~~~~~~~~
 
-As of version 2.5.1 Jinja2 will check for an installed `MarkupSafe`_
-module.  If it can find it, it will use the Markup class of that module
-instead of the one that comes with Jinja2.  `MarkupSafe` replaces the
-older speedups module that came with Jinja2 and has the advantage that is
-has a better setup script and will automatically attempt to install the C
-version and nicely fall back to a pure Python implementation if that is
-not possible.
-
-The C implementation of MarkupSafe is much faster and recommended when
-using Jinja2 with autoescaping.
+As of version 2.7 Jinja2 depends on the `MarkupSafe`_ module.  If you
+install Jinja2 via `pip` or `easy_install` it will be installed
+automatically for you.
 
 .. _MarkupSafe: http://pypi.python.org/pypi/MarkupSafe
 
-
-<<<<<<< HEAD
-=======
-Enable the debug support Module
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-By default Jinja2 will not compile the debug support module.  Enabling this
-will fail if you don't have the Python headers or a working compiler.  This
-is often the case if you are installing Jinja2 from a Windows machine.
-
-Because the debug support is only necessary for Python 2.4 you will not
-have to do this unless you run 2.4::
-
-    sudo python setup.py --with-debugsupport install
-
-
->>>>>>> Talksum/distribute_required
 Basic API Usage
 ---------------