leafo / etlua

Embedded Lua templates

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deal with sub-template outside Lapis

hs0ucy opened this issue · comments

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!