Skip to content

Include partials #13

@loopmode

Description

@loopmode

Hi. We're using your library to preview html email templates. A small stack that we feed with some json data and out comes the html email in a browser. This works great.

However, a new requirement came up and we have to actually include partials in various templates.

The way I see it, when we put a <#include "foo.ftl"> in a template, it simply remains exactly that string - it doesn't get evaluated and the contents of foo.tpl don't get included.
Effectively, we can preview each partial on its own, but we can not preview the composed email template.

Without going into details - should this be possible, and we just need to setup our stack better? Or is it maybe just not possible without using actual java freemarker?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions