There are two kinds of partials: named partials and file partials.
By the way, you can overwrite the
includeFile functions using
eta.configure. They are just functions defined on the config object:
Named partials have to be defined ahead of time as template functions. They are included using
<%~ include(partialName, data) %> and work in the browser, Node, and Deno.
File partials, on the other hand, do not need to be defined ahead of time. They are included using
<%~ includeFile(path, data) %> and do not work in the browser. Eta looks in
config.views for the templates you reference (note: it's actually a little bit more complicated, check out file-handling).