📋
pimp
  • Home
  • Installation
  • FAQ
  • Getting Started
    • Welcome
    • Expand commands
    • Run tasks
    • Render templates
    • Execute scripts
    • Next steps
  • User Guide
    • Pimpfile
    • Configuration File
    • Command Expander
    • Task Runner
    • Template Engine
      • Functions
    • Script Engine (PimpScript)
    • Go Library
  • Integrations
    • Bash, Zsh, Fish
Powered by GitBook
On this page
  1. Getting Started

Render templates

PreviousRun tasksNextExecute scripts

Last updated 4 years ago

pimp template system is based on . There are no fundamental differences between them. The following piece of code behaves as you would expect:

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

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

Note the use of the GitBranches function. Refer to the documentation to learn more about all the functions available.

You can use pimp --eval 'funcs | toPrettyJSON' to list all the functions available when rendering a template.

Read more about the in the documentation.

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

Go template system
template functions
Template Engine