Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing snippets #4

Open
everyonesdesign opened this issue Nov 24, 2016 · 2 comments
Open

Add missing snippets #4

everyonesdesign opened this issue Nov 24, 2016 · 2 comments

Comments

@everyonesdesign
Copy link

Missing snippets are:

  • set
  • with

set

Note that set can be used as

{% set a = 'Hello, bear!' %}

as well as

{% set a %}Hello, bear!{% endset %}

with

with also has 2 forms.
First version syntax is

{% with a='Hello, bear!' %}{% endwith %}

and the second one (scope restricting) is

{% with %}
    {% set a='Hello, bear!' %}
{% endwith %}
@dgirgenti
Copy link

👍

while you're at it get include in there too

@rludgero
Copy link

rludgero commented Apr 6, 2020

Are you still planning on implementing these snippets?

Missing snippets:

  • Set
{% set foo = 42 %}

{% set navigation %}
    <li><a href="/">Index</a>
    <li><a href="/downloads">Downloads</a>
{% endset %}
  • With
{% with foo = 42 %}
    {{ foo }}
{% endwith %}

{% with %}
    {% set foo = 42 %}
    {{ foo }}
{% endwith %}
  • Include
{% include 'header.html' %}

Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants