ãJemplate 㧠JavaScript ã§ããã¸ãã¯ã¨ãã¥ã¼ãåé¢ãããã«åºæ¿ããã¦ãphpã§ãã£ã¦ã¿ãããã¨æã£ããããã¾ãã«ãç°¡åãªãã¨ããæãã¤ããªãã¦ãããã£ã¦ãããããã¨ï¼ã£ã¦ã®ãæ¸ãã¦ã¿ã¾ãã HTMLã®Windowã¤ã³ã¿ã¼ãã§ã¼ã¹ãç 究ãã ã§ã·ã³ãã«ãªã¦ã¤ã³ãã¦ããã¼ã¸ã£ãä½ã£ã¦ã¿ãã®ã§ãããnaoyaãããæ¸ããã¦ããéããJavaScriptã§åçåºåããHTMLé¨åã®ã³ã¼ãã£ã³ã°ãé¢åã ãªãã¨æã£ã¦ããã®ã§ãJemplateãªããã®ã®å¤ããã«Smartyã使ã£ããã©ããï¼ã¨ãããã¨ã§ä»¥ä¸ã®ãããªæãã«ãªãã¾ãããã»ã»ã»ã» ä¾ï¼ã¾ãæãã·ã³ãã«ãªHTMLå´ã®ã³ã¼ããæ¸ãã¦ã¿ãã document.writeãã¦ãã®ã¯ãã¹ã¯ãªããã¿ã°ããèªã¿è¾¼ã¾ããjsonãªãã¸ã§ã¯ãã®ä¸ã«ããHTMLã«è©²å½ãã¾ãã --------------------------------
Jemplate is a templating framework for Javascript that is built over Perl's Template Toolkit (TT2). Jemplate parses TT2 templates using the TT2 Perl framework, but with a twist. Instead of compiling the templates into Perl code, it compiles them into Javascript. ããã¶ããããå®®å·ãããããã¯ãã¼ã¯ãã¦ãã®ã§æ°ã«ãªã£ã¦ã¡ãã£ã¨è¦ã¦ã¿ãæ°çã¢ã¸ã¥ã¼ã«ã® Jemplateããªããªãé¢ç½ãã§ããTemplate-Toolkit ã§è¨è¿°ãããã³ãã¬ã¼ãã®ãã³ãã¬ã¼ãå¤æ°ã« JavaScript ä¸ã® JSON ãå±éããããã¨ãã§ããã¨ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}