File: index.rst

package info (click to toggle)
python-sphinx-jinja 2.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 184 kB
  • sloc: python: 198; sh: 6; makefile: 3
file content (64 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Welcome to test's documentation!
================================

.. jinja::

   .. include:: ../../../README.rst

after include

.. jinja:: first_ctx

    {% for k, v in topics.items() %}

    {{k}}
    ~~~~~
    {{v}}
    {% endfor %}

after first context

.. jinja:: second_ctx
   :file: jinja_template.jinja
   :header_char: ~

after second context

.. jinja:: third_ctx
    :debug:

    Lists
    -----

    {% for o in objects -%}
        {%- if o is instanceof list -%}
            {%- for x in o -%}
                - {{ x|bold }}
            {% endfor -%}
        {%- endif -%}
    {%- endfor %}

after third context

first context with debug on

.. jinja:: first_ctx
    :debug:

    {% for k, v in topics.items() %}

    {{k}}
    ~~~~~
    {{v}}
    {% endfor %}

second context with debug on

.. jinja:: second_ctx
   :file: jinja_template.jinja
   :header_char: ~
   :debug:

.. toctree::

   header_levels.html