etlua
etlua copied to clipboard
Deal with sub-template outside Lapis
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!