# Render templates

pimp template system is based on [Go template system](https://golang.org/pkg/text/template/). There are no fundamental differences between them. The following piece of code behaves as you would expect:

```go
{{- /* template.tmpl */ -}}

Git branches in {{pwd}}:
{{- range GitBranches}}
  * {{.}}
{{- end}}
```

Note the use of the `GitBranches` function. Refer to the [template functions](/pimp/user-guide/template-engine/functions.md) documentation to learn more about all the functions available.

{% hint style="info" %}
You can use `pimp --eval 'funcs | toPrettyJSON'` to list all the functions available when rendering a template.
{% endhint %}

Read more about the [Template Engine](/pimp/user-guide/template-engine.md) in the documentation.

Next, let's see how you can run scripts with Pimp.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aymericbeaumet.gitbook.io/pimp/getting-started/render-templates.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
