Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minijinja-cli 2.3.1 (new formula) #194348

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Formula/m/minijinja-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
class MinijinjaCli < Formula
desc "Render Jinja2 templates directly from the command-line to stdout"
homepage "https://docs.rs/minijinja/latest/minijinja/"
url "https://github.com/mitsuhiko/minijinja/archive/refs/tags/2.3.1.tar.gz"
sha256 "c933a1d9f53de26bb776a61b9346e0b202c332b4ff1309db5d0178a9b603ca06"
license "Apache-2.0"
head "https://github.com/mitsuhiko/minijinja.git", branch: "main"

depends_on "rust" => :build

def install
system "cargo", "install", *std_cargo_args(path: "minijinja-cli")
end

test do
(testpath/"test.jinja").write <<~EOS
Hello {{ name }}
EOS

assert_equal "Hello Homebrew\n", shell_output("#{bin}/minijinja-cli test.jinja --define name=Homebrew")
end
end
Loading