【发布时间】:2023-03-12 19:14:01
【问题描述】:
现在我可以做到这一点:
@template = Liquid::Template.parse("hi {{name}}") # Parses and compiles the template
p @template.render('name' => 'tobi')
但是,我如何使用我已调用 template.liquid 的文件调用 Liquid::Template,该文件包含以下内容:
hi {{name}}
【问题讨论】: