简体   繁体   中英

Freemarker - Reload Template

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 )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM