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

Freemarker에서는 이렇게 사용을 합니다.
<#include "/common/copyright.ftl">

같은 경로에 파일이 존재 할때는
<#include "./common/copyright.ftl">

상위 폴더에 존재할 때는 다음과 같이,
<#include "*/common/copyright.ftl">

요렇게 사용도 가능합니다.
<#include "commons/*/footer.ftl">

spring, freemarker와 webwork를 보고 있으면 참 유연한 구조가 가능하다는 생각을 합니다.
framework를 만들 때는 삽질과 경험이 많아야 좋은 솔루션을 만들어내는 듯합니다...^^


참고
http://freemarker.sourceforge.net/docs/ref_directive_include.html

Posted by ologist

블로그 이미지
ologist

공지사항

Yesterday170
Today67
Total33,508

달력

 « |  » 2012.02
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

최근에 받은 트랙백

글 보관함