스마티

위키백과, 우리 모두의 백과사전.
(Smarty에서 넘어옴)

스마티
Smarty
개발자Monte Ohrt, Messju Mohr, Uwe Tews
안정화 버전
5.0.2[1] 위키데이터에서 편집하기 / 2024년 3월 28일(28일 전)(2024년 3월 28일)
저장소
프로그래밍 언어PHP
종류템플릿 엔진
라이선스LGPL
웹사이트www.smarty.net

스마티(Smarty)는 PHP로 개발된 웹 템플릿 시스템이다. 스마티는 주로 관심사 분리를 위한 도구로 홍보되었다.[2] 스마티는 구분화를 단순하게 함으로써 웹 페이지의 프론트엔드가 백엔드로부터 분리되어 변화될 수 있도록 허용한다. 이것은 이상적으로 비용을 낮추고 소프트웨어 유지보수에 들어가는 노력을 최소화한다.

스마티 예시[편집]

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="utf-8">
   <title>{$title_text|escape}</title>
</head>

<body> {* This is a little comment that won't be visible in the HTML source *}
{$body_html}
</body> <!-- this is a little comment that will be seen in the HTML source -->
</html>

각주[편집]

  1. “Release 5.0.2”. 2024년 3월 28일. 2024년 4월 25일에 확인함. 
  2. Parr, Terence John (2004). 《Enforcing strict model-view separation in template engines》. Proceedings of the 13th international conference on World Wide Web. ISBN 1-58113-844-X. 

외부 링크[편집]