mirror of
https://github.com/danog/liquid.git
synced 2024-11-27 03:14:39 +01:00
13 lines
270 B
Ruby
Executable File
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)
|