Statische tags

Framedoos


HTML-ontsnapping

// Demo van het gebruik van htmlescape met een bijgevoegd bronbestand. // De HTML-tekens <, > en & zijn hier OK. openbare klasse Foo { privé Kaartwoordenboek; public void addItem(String key, String value) { if (key != null && !key.equals("")) { dictionary.add(key, value); } } }

Set

  • artikel: een
  • onderwerp: woordenboek
  • EEN

Setvar

  • Google ABCD Alfa
  • Google ABCD-bèta
  • Google ABCD-gamma

Ruimteloos

This whitespace should be unchanged
      also no changes
      to lines like this
    

woordelijk

    {% if foo == "bar" %}
      This is foo.
    {% else %}
      This is baz.
    {% endif %}

    {% setvar name "world" %}
    Hello {{ name }}!