Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
/ coppercli Public archive

Command-line tool for rendering text using a template

License

Notifications You must be signed in to change notification settings

blizzy78/coppercli

Repository files navigation

Build Status

coppercli

coppercli is a small command line tool that uses the Copper template engine for Go to render text using a template.

Usage: coppercli <template.txt >output.txt -data KEY=VALUE -data KEY_2=VALUE_2 ...

Example

template.html

<html>
  <head>
    <title><% html(title) %></title>
  </head>
  <body>
    <p>
      Hello, <% html(who) %>!
    </p>
  </body>
</html>

Command line: coppercli <template.html >output.html -data title=Example -data who=world

output.html

<html>
  <head>
    <title>Example</title>
  </head>
  <body>
    <p>
      Hello, world!
    </p>
  </body>
</html>

Releases

No releases published

Packages

No packages published

Languages