#nushell-plugin #nushell #template

app nu_plugin_template

Templating in Nushell, powered by TinyTemplate

6 releases (breaking)

0.101.0 Dec 23, 2024
0.100.0 Nov 16, 2024
0.99.0 Oct 20, 2024
0.3.0 Sep 22, 2024
0.1.0 Sep 3, 2024

#73 in Template engine

Download history 48/week @ 2024-09-14 181/week @ 2024-09-21 21/week @ 2024-09-28 3/week @ 2024-10-05 162/week @ 2024-10-19 5/week @ 2024-10-26 6/week @ 2024-11-02 2/week @ 2024-11-09 115/week @ 2024-11-16 10/week @ 2024-11-23 6/week @ 2024-12-07 126/week @ 2024-12-21 10/week @ 2024-12-28

142 downloads per month

MPL-2.0 and maybe CC-PDDC

18KB
185 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