mirror of
https://github.com/danog/liquid.git
synced 2024-11-30 07:38:59 +01:00
13 lines
270 B
Plaintext
13 lines
270 B
Plaintext
|
#!/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)
|