You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a multiple files with almost the same header/footer(/sidebar) is a bad design.
So we might consider breaking the layout into smaller flexible files using HTML's <!--#include file="partial.html"--> or EJS's <% include partials/partial.ejs %>.
I do support moving into EJS because you can also pass some parameters in flexible ways.
What do you think @tulir
The text was updated successfully, but these errors were encountered:
The headers don't have that much content and the footer can be translated (meaning a partial wouldn't help there), so I don't think it's too bad right now, but I guess it'll be more relevant with #85.
Caddy templates and the include directive are the best way, no reason to involve JavaScript.
Having a multiple files with almost the same header/footer(/sidebar) is a bad design.
So we might consider breaking the layout into smaller flexible files using HTML's
<!--#include file="partial.html"-->
or EJS's<% include partials/partial.ejs %>
.I do support moving into EJS because you can also pass some parameters in flexible ways.
What do you think @tulir
The text was updated successfully, but these errors were encountered: