Is there a simple, standalone, portable, existing distribution of Mustache for windows that lets me invoke Mustache exactly as specified (or as close as possible) in the mustache(1) manual?
cat data.yml template.mustache | mustache
I can't find any explanation of how to actually acquire an executable called mustache
to use mustache in this way - on any platform, although I'm primarily interested in Windows right now.
As far as I can tell, the various implementations of mustache listed on the mustache homepage are mostly libraries, rather than standalone applications that can be invoked in this way.
Ideally, I'm looking for something that's:
If this isn't available then I'm interested in getting as close as possible - e.g. if I have to preinstall python but not needing to run an installer which connects to the internet.
I'm prepared to concede on the "no preinstall" if it's something I have a cat in hell's chance of already having packaged up at our organisation (e.g. python or ruby) but not for individual libraries.
From the docs:
INSTALLATION
If you have RubyGems installed:
gem install mustache
See https://mustache.github.io/mustache.1.html bottom of page
I think you could use one of the implementations of Mustache that compiles to a native executable. For instance, here are the pre-compiled releases for the Go client.
Thus installing to a Linux server could look something like:
GO_MUSTACHE_VERSION=1.2.0
curl -s -L -o /tmp/mustache.tgz https://github.com/cbroglie/mustache/releases/download/v${GO_MUSTACHE_VERSION}/mustache_${GO_MUSTACHE_VERSION}_linux_amd64.tar.gz
tar xvf /tmp/mustache.tgz -C path/to/installation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With