nu_plugin_template

Crates.ionu_plugin_template
lib.rsnu_plugin_template
version0.99.0
sourcesrc
created_at2024-09-03 07:29:54.93928
updated_at2024-10-20 11:32:45.046786
descriptionTemplating in Nushell, powered by TinyTemplate
homepage
repositoryhttps://codeberg.org/kaathewise/nugins
max_upload_size
id1361423
size58,685
Andrej KolĨin (KAAtheWiseGit)

documentation

README

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.

Commit count: 0

cargo fmt