Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deal with sub-template outside Lapis #6

Open
hs0ucy opened this issue Oct 26, 2018 · 0 comments
Open

Deal with sub-template outside Lapis #6

hs0ucy opened this issue Oct 26, 2018 · 0 comments

Comments

@hs0ucy
Copy link

hs0ucy commented Oct 26, 2018

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant