2 unstable releases

0.2.0 Sep 7, 2024
0.1.0 Sep 3, 2024

#42 in Template engine

Download history 301/week @ 2024-09-03 11/week @ 2024-09-10

312 downloads per month

MPL-2.0 and maybe CC-PDDC

17KB
178 lines

Templating

Simple string templating for Nushell, powered by TinyTemplate.

Usage

~> "Running task {name}
	Processing files {{ for file in files -}}
	{file} {{- if not @last}}, {{ endif }}
	{{- endfor }}.

	{{ if result.success -}}
	Output: {result.output}
	{{- else -}}
	Failure!
	{{- endif -}}"
	| template {
		name: check
		files: [main.rs, util.rs, json.rs]
		result: { success: true, output: "No errors found" }
	}
Running task check
Processing files main.rs, util.rs, json.rs.

Output: No errors found

For the full syntax description, see the TinyTemplate docs.

Dependencies

~24–57MB
~1M SLoC