Skip to content

Commit

Permalink
CLI script to run shopify liquid for cf.
Browse files Browse the repository at this point in the history
  • Loading branch information
osteele committed Jul 16, 2017
1 parent f1412b6 commit 534c0e3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions scripts/shopify-liquid
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 534c0e3

Please sign in to comment.