#nushell-plugin #nu-shell #templating #tiny-template #template

app nu_plugin_template

Templating in Nushell, powered by TinyTemplate

8 releases (breaking)

0.103.0 Apr 7, 2025
0.102.0 Feb 27, 2025
0.101.0 Dec 23, 2024
0.100.0 Nov 16, 2024
0.1.0 Sep 3, 2024

#91 in Template engine

Download history 55/week @ 2024-12-24 6/week @ 2025-01-07 1/week @ 2025-01-14 145/week @ 2025-02-25 11/week @ 2025-03-04 1/week @ 2025-03-11 65/week @ 2025-04-01 70/week @ 2025-04-08

135 downloads per month

MPL-2.0 and maybe CC-PDDC

16KB
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