1
0
mirror of https://github.com/danog/liquid.git synced 2024-11-30 04:59:04 +01:00
liquid/scripts/shopify-liquid
2017-07-16 13:42:09 -04:00

13 lines
270 B
Ruby
Executable File

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