<commit_before>Twig Defer Block
=============
This Twig extension adds defer block rendering.
A defer block allows you to defer a block within its current context but show the output at a later stage in the template.
By default, the defer block will append information based on its reference name, this allows you to define multiple defer block which are then output at a single place.
 
Example
-------------
```jinja
{% defer js %}
    <script src="1.js" />
{% enddefer %}
{% defer js %}
    <script src="2.js" />
{% enddefer %}

<p>Hello</p>
{{ defer('js') }}
```

Output:
```html
<p>Hello</p>
    <script src="1.js" />
    <script src="2.js" />
```

Example with unique
-------------
When using the defer block, a second name can be given. It can be a variable or a string, when using a variable make use it has a scalar value. 
This name allows you to only render a block with that name once. (Note: This will always pick the first block with the second name)  
```jinja
{% set bar = ['1', '2'] %}
{% for x in xs %}
    {% defer js 'once' %}
        <script src="once.js" />
    {% enddefer %}
    {% defer js x %}
        <script src="once_{x}.js" />
    {% enddefer %}
    {% defer js %}
        <script src="{x}.js" />
    {% enddefer %}
{% endfor %}

{% for x in xs %}
    {% defer js x %}
        <script src="once_{x}.js" />
    {% enddefer %}
    <li>x</li>
{% endfor %}
{{ defer('js') }}
```

Output:
```html
<ul>
    <li>1</li>
    <li>2</li>
</ul>
        <script src="once.js" />
        <script src="once_1.js" />
        <script src="1.js" />
        <script src="once_2.js" />
        <script src="2.js" />
```

Other options:
-------------
A different defer implementation was made by [<NAME>](https://github.com/rybakit) called [rybakit/twig-extensions-deferred](https://github.com/rybakit/twig-extensions-deferred).


<commit_msg>Fixed Typo [skip ci]<commit_after>Twig Defer Block
=============
This Twig extension adds defer block rendering.
A defer block allows you to defer a block within its current context but show the output at a later stage in the template.
By default, the defer block will append information based on its reference name, this allows you to define multiple defer block which are then output at a single place.
 
Example
-------------
```jinja
{% defer js %}
    <script src="1.js" />
{% enddefer %}
{% defer js %}
    <script src="2.js" />
{% enddefer %}

<p>Hello</p>
{{ defer('js') }}
```

Output:
```html
<p>Hello</p>
    <script src="1.js" />
    <script src="2.js" />
```

Example with unique
-------------
When using the defer block, a second name can be given. It can be a variable or a string, when using a variable make sure it has a scalar value. 
A unique name allows you to only render a block once. (Note: This will always pick the first block with the second name)
```jinja
{% set bar = ['1', '2'] %}
{% for x in xs %}
    {% defer js 'once' %}
        <script src="once.js" />
    {% enddefer %}
    {% defer js x %}
        <script src="once_{x}.js" />
    {% enddefer %}
    {% defer js %}
        <script src="{x}.js" />
    {% enddefer %}
{% endfor %}

{% for x in xs %}
    {% defer js x %}
        <script src="once_{x}.js" />
    {% enddefer %}
    <li>x</li>
{% endfor %}
{{ defer('js') }}
```

Output:
```html
<ul>
    <li>1</li>
    <li>2</li>
</ul>
        <script src="once.js" />
        <script src="once_1.js" />
        <script src="1.js" />
        <script src="once_2.js" />
        <script src="2.js" />
```

Other options:
-------------
A different defer implementation was made by [<NAME>](https://github.com/rybakit) called [rybakit/twig-extensions-deferred](https://github.com/rybakit/twig-extensions-deferred).



{'fraction_non_alphanumeric': 0.18599621519329548, 'fraction_numerical': 0.006488240064882401, 'mean_word_length': 2.648915187376726, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6672135', 'n_tokens_mistral': 1307, 'n_tokens_neox': 1173, 'n_words': 421}