Statiske tags

Rammekasse


HTML Escape

// Demo af brug af htmlescape med en inkluderet kildefil. // HTML-tegnene <, > og & er OK her. offentlig klasse Foo { privat kortordbog; public void addItem(String key, String value) { if (key != null && !key.equals("")) { dictionary.add(key, value); } } }

Sæt

  • artikel: a
  • emne: ordbog
  • EN

Setvar

  • Google ABCD Alpha
  • Google ABCD Beta
  • Google ABCD Gamma

Rumløs

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

Ordret

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

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