How can you render a template within a layout using Liquid template language?

后端 未结 2 388
隐瞒了意图╮
隐瞒了意图╮ 2021-02-04 12:44

I\'m trying to render a liquid template within a liquid layout (Liquid Template lang, not CSS liquid layout stuff). I can\'t seem to get the layout part to render. Currently u

2条回答
  •  长情又很酷
    2021-02-04 13:00

    Just to let anyone else know who comes across this problem, the code posted above actually does work, the issue is with the variable named @template. I renamed @template, and @layout to @_tempalte, and @_layout and everything works as expected.

提交回复
热议问题