1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 07:38:59 +01:00
liquid/scripts/shopify-liquid

13 lines
270 B
Plaintext
Raw Permalink Normal View History

#!/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)