Template/Freemarker
Freemarker 템플릿 파일에서 include사용
셋부터넷
2020. 9. 25. 14:10
대부분의 view페이지에서 제공하는 기능입니다.
Freemarker에서는 이렇게 사용을 합니다.
<#include "/common/copyright.ftl">
같은 경로에 파일이 존재 할때는
<#include "./common/copyright.ftl">
상위 폴더에 존재할 때는 다음과 같이,
<#include "*/common/copyright.ftl">
요렇게 사용도 가능합니다.
<#include "commons/*/footer.ftl">