대부분의 view페이지에서 제공하는 기능입니다.

Freemarker에서는 이렇게 사용을 합니다.

<#include "/common/copyright.ftl">


같은 경로에 파일이 존재 할때는

<#include "./common/copyright.ftl">


상위 폴더에 존재할 때는 다음과 같이,

<#include "*/common/copyright.ftl">


요렇게 사용도 가능합니다.

<#include "commons/*/footer.ftl">

 

출처 : ologist.tistory.com/m/670?category=322832

Posted by 셋부터넷
,