about summary refs log tree commit diff
path: root/src/librustdoc/html/templates/source.html
blob: a224ff12f448eea51ad06ee29d42dfc7af61d75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<div class="example-wrap"> {# #}
    <pre class="src-line-numbers">
        {% for line in lines.clone() %}
            {% if embedded %}
                <span>{{line|safe}}</span>
            {%~ else %}
                <a href="#{{line|safe}}" id="{{line|safe}}">{{line|safe}}</a>
            {%~ endif %}
        {% endfor %}
    </pre> {# #}
    <pre class="rust"> {# #}
        <code>
            {% if needs_expansion %}
                <button class="expand">&varr;</button>
            {% endif %}
            {{code_html|safe}}
        </code> {# #}
    </pre> {# #}
</div>