Tags statiques

Cadre


Échappement HTML

// Démonstration de l'utilisation de htmlescape avec un fichier source inclus // Les caractères HTML <, > et & sont acceptés ici. public class Foo { private Map dictionnaire; public void addItem(String key, String value) { if (key != null && !key.equals("")) { dictionnaire.add(key, value); } } }

Ensemble

  • article: a
  • subject: dictionnaire
  • A

Setvar

  • ABCD Alpha de Google
  • ABCD Bêta de Google
  • ABCD gamma Google

Sans espace

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

Mot à mot

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

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