diff --git a/scripts/shopify-liquid b/scripts/shopify-liquid new file mode 100755 index 0000000..e86e472 --- /dev/null +++ b/scripts/shopify-liquid @@ -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)