Skip to content

Nunjucks cant find templates on server #166

@zjti

Description

@zjti

i tried to use a server-side-template :
<div hx-ext="client-side-templates"> <form hx-get="https://api...." hx-swap="innerHTML" hx-target="#content" nunjucks-array-template="partials/oa1.html" > <input type="text" name="search" placeholder="Title" /> <button type="submit">Submit</button> </form> <p id="content">Start</p> </div>

but it doesnt find the the serverside template.
it thorws an error at line 87 ("/client-side-templates.js") :
var template = htmx.find("#" + templateName);

i am using htmx v2

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