Skip to content

Deal with sub-template outside Lapis #6

Open

Description

@hs0ucy

I would like to understand how to deal with sub-template when we are outside of Lapis?

I had tested something like that

<!-- templates/test.etlua -->
<html>
    <% etlua.render("templates.partials.head") %>

    <body>
        Hello <%- title %>

        <%- content %>
    </body>
</html>

But it's not working ... I presume it's a package.path problem, but i don't know how to fix it.

Thanks for your help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions