Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

blizzy78/coppercli

Open more actions menu

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>

About

Command-line tool for rendering text using a template

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.