Problem found.
it is necessary to set the following:
Template.FileSystem = new
LocalFileSystem(AppDomain.CurrentDomain.BaseDirectory);
and there is naming convention in template name
It should be named as _NotificationTemplate.liquid
and include like:
{% include "NotificationTemplate" %}
On 2月14日, 下午11時13分, Stanley Tsang <
stanleya...@gmail.com> wrote:
> Hi all,
>
> I have some question on using dotliquid. In the wiki page for design,
> I found that dotliquid support "include" which can include another
> partial template to a template.
> However, when I tried to use "include" like the following:
> {% include "NotificationTemplate.tmp" %}
>
> The following error showed:
> Liquid error: Error - This liquid context does not allow includes
>
> I have also found fromhttp://
havanacommerce.net/en/help/templates.syntax