# Pongo2 The [PONGO2](https://github.com/flosch/pongo2) Templating Plugin - Pongo2 templates may be identified by a `shebang` on the first line (preferred method) or changing the file extension to home.pongo2.html. By default the operation of revel assumes just a `.html` extension for controller responses so it would make more sense to use the shebang - Pongo2 templates can be set to be case sensitive by setting `pongo2.tempate.caseinsensitive=false`, default is not case sensitive. If case sensitivity is off the templates are compiled using lower case - Currently the only functions built in are as follows: - field - radio - option - url - checkbox - append Samples implementation below ##### Details pongo2 is the successor of [pongo](https://github.com/flosch/pongo), a Django-syntax like templating-language. Install/update using `go get` (no dependencies required by pongo2): ``` go get -u github.com/flosch/pongo2 ``` Please use the [issue tracker](https://github.com/flosch/pongo2/issues) if you're encountering any problems with pongo2 or if you need help with implementing tags or filters ([create a ticket!](https://github.com/flosch/pongo2/issues/new)). If possible, please use [playground](https://www.florian-schlachter.de/pongo2/) to create a short test case on what's wrong and include the link to the snippet in your issue. **New**: [Try pongo2 out in the pongo2 playground.](https://www.florian-schlachter.de/pongo2/) ``` {%append "moreStyles" "ui-lightness/jquery-ui-1.7.2.custom.css"%} {%append "moreScripts" "js/jquery-ui-1.7.2.custom.min.js"%} {% include "header.html" %}

Book hotel

Name: {{hotel.Name}}

Address: {{hotel.Address}}

City: {{hotel.City}}

State: {{hotel.State}}

Zip: {{hotel.Zip}}

Country: {{hotel.Country}}

Nightly rate: {{hotel.Price}}

{%with field = "booking.CheckInDate"|field %}

Check In Date: * {{field.Error}}

{% endwith %} {%with field = "booking.CheckOutDate"|field %}

Check Out Date: * {{field.Error}}

{% endwith %}

Room preference: {%with field = "booking.Beds"|field %} {% endwith %}

Smoking preference: {%with field = "booking.Smoking"|field %} {%radio field "true"%} Smoking {%radio field "false"%} Non smoking {% endwith %}

{%with field = "booking.CardNumber"|field %}

Credit Card #: * {{field.Error}}

{% endwith %} {%with field = "booking.NameOnCard"|field %}

Credit Card Name: * {{field.Error}}

{% endwith %}

Credit Card Expiry: {%with field = "booking.CardExpMonth"|field %} {% endwith %} {%with field = "booking.CardExpYear"|field %} {% endwith %}

Cancel

{% include "footer.html" %} ``