how to use {% include 'header' %} / Liquid error: This liquid context does not allow includes.

Showing 1-2 of 2 messages
how to use {% include 'header' %} / Liquid error: This liquid context does not allow includes. fero 10/20/08 1:28 AM
hello nerds

i am trying to structure my templates in a very simple way, and want
to use something like ordinary include ... which simple includes file
content in the template. i've explored mephisto templates find
something like:

{% include 'header' %}

but when I use it, I obtain only:

Liquid error: This liquid context does not allow includes.

please, how to do that?

thanks a lot.

fero.
Re: how to use {% include 'header' %} / Liquid error: This liquid context does not allow includes. fero 10/20/08 3:31 AM
this is the answer:

Liquid::Template.file_system =
Liquid::LocalFileSystem.new(template_path)
liquid = Liquid::Template.parse(template)