@@ -1289,15 +1289,21 @@ build chapter: :ref:`engines generic`. Below the jinja directive from the
12891289 :language: reST
12901290 :start-after: .. _configured engines:
12911291
1292−The context for the template is selected in the line ``.. jinja:: webapp``. In
1293−sphinx's build configuration (:origin:`docs/conf.py`) the ``webapp`` context
1294−points to the name space of the python module: ``webapp``.
1292+The context for the template is selected in the line ``.. jinja:: searx``. In
1293+sphinx's build configuration (:origin:`docs/conf.py`) the ``searx`` context
1294+contains the ``engines`` and ``plugins``.
12951295
12961296.. code:: py
12971297
1298− from searx import webapp
1298+ import searx.search
1299+ import searx.engines
1300+ import searx.plugins
1301+ searx.search.initialize()
12991302 jinja_contexts = {
1300− 'webapp': dict(**webapp.__dict__)
1303+ 'searx': {
1304+ 'engines': searx.engines.engines,
1305+ 'plugins': searx.plugins.plugins
1306+ },
13011307 }
13021308
13031309