1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 06:39:02 +01:00

CLI script to run shopify liquid for cf.

This commit is contained in:
Oliver Steele 2017-07-16 13:42:09 -04:00
parent f1412b603c
commit 534c0e3e50

12
scripts/shopify-liquid Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env ruby
require 'liquid'
Liquid::Template.error_mode = :strict
source = $stdin.read
template = Liquid::Template.parse(source)
out = template.render({}, { strict_filters: true })
# for e in template.errors do
# # $stderr.puts e
# end
$stdout.write(out)