Freemarker-重新加载模板

I have a page whereby I am including a freemarker FTL in this way: <#include "header.ftl">

Now, the page that it is in does not reload as it's a one pager. However, I would like that at a certain point I refresh header.ftl without doing a full page refresh. Is this possible by any chance? I am new to FTL.

You'll need two serverside endpoints, one for the whole page and another for the fragment(s).

You can then use an ajax request to refresh the fragment (eg jquery)