Show HN: Tmplr – language agnostic template instantiation in Rust
github.com·1d·
Discuss: Hacker News
Preview
Report Post

tmplr

tmplr (pronounced "templar") is a small and simple utility to kickstart any file from .tmplr format:

tmplr

https://github.com/exlee/tmplr
A simple template instantiation utility.

Usage:

make   <TEMPLATE_FILE/TEMPLATE_NAME> <NAME> VAR=VAL...
create <TEMPLATE_FILE> <NAME>
list   List available templates

Installation

git clone git@github.com:exlee/tmplr.git
cargo install --path .

Or download binary built by CI

Usage

.tmplr files

In order to start, you need to have a .tmplr file. It’s syntax is simple and is similar to format of txtar . For example example0.tmplr could look like this:

{### DIR empty_dir ###}
{### FILE some_f...

Similar Posts

Loading similar posts...