liquid icon indicating copy to clipboard operation
liquid copied to clipboard

layout support

Open millken opened this issue 1 year ago • 1 comments

Examples parent.tpl

<html>
  <head>
    <title> Page Title</title> 
  </head>
 <body>
    <slot>
</body>
</html>

child.tpl

{% layout "parent.tpl" %} 
<h1>Hello</h1>
{% endlayout %}

The result would look like

<html>
  <head>
    <title>Page Title</title>
  </head>
 <body>
    <h1>Hello</h1>
</body>
</html>

millken avatar Nov 02 '24 13:11 millken

Hi @millken , maybe you should have a look at this new golang lib that provides full feature parity with official Liquid specs, including layout: https://github.com/Notifuse/liquidgo

pierre-b avatar Nov 23 '25 08:11 pierre-b