ãã¼ãã³ã°çã«ã¯ãå³æ¥èè³å¯è½ãªãã£ãã·ã³ã°ãã§ãããã¨ããã ããã¨ãã£ã¦å³æ¥ã«å¯©æ»ã¾ã§å®çµãããã¨ã¾ã§ã¯è¨ããªãã¨ããç¾å®ã«æ°ãä»ãã¦ããã¹ãã§ãã åµåãä¸æ¬åããã¨è¨ãã¾ãã®ã¯ãä½è»ãã®è² åµãä¸ä½åãããè¿æ¸å ãï¼ã¤ã®éèæ©é¢ã ãã«ãããã¨ãæå³ãããã®ã§ããã¾ã¨ããã¼ã³çã¨å¼ã°ãã¦ããããã§ãã ãä»åãåãã¦ã¨ãããã¨ã§ãªãã¨ãªãä¸å®ãã¨è¨ãããæ¹ãããªãè¦ããã¾ãããé£ãããã¨ã¯ä½ä¸ã¤ããã¾ãããç³ãè¾¼ã¿ã¯ãããã¥ããã¨ãããªãã審æ»ãã¹ãã¼ãã£ã¼ããã©ã¹ãã³ããªã³ã°ãªã©ãä¸æ©ä¸æ©åä¸ãã¦ããã®ã§ãå°æãããããªãã¨ããªããå©ç¨ããã ãã¾ãã 種é¡ã«ãã£ã¦ã¯ãå¹´ä¼è²»ãæããã®ãããã¾ãã®ã§ããã£ãã·ã³ã°ã®ããã«ã¯ã¬ã¸ããã«ã¼ããææããã¨ããã®ã¯ãããã¾ã§ä¸æ¼ãã§ããæ¹æ³ã§ã¯ãªãã¨è¨ã£ã¦ããã§ãããã éå©ã¯ä½ã«ãå¢ãã¦å¤§äºãªè¦ç´ ã§ãããããããå¿µå ¥ãã«æ¯ã¹ã¦ã¿ãã°ããèªèº«ã«ã¨
Jemplateã§compileããã¨ä½ãåºã¦ããã®ã id:naoyaæ°ã解説ãã¦ãã話é¡ã®Jemplate æ°ã«ãªã£ãã®ã¯å¤æï¼compileï¼ããã¨ä½ãåºã¦ããã®ããã§ã # jemplate --compile test.tt ãå®éãã£ã¦ã¿ãã å HTMLã¯ã <h1>[% title %]</h1> <p>[% description %]</p> <p>foo</p> ãããå¤æããã¨ããããªãã¾ãã Jemplate.templateMap['test.tt'] = function(context) { if (! context) throw('Jemplate function called without context\n'); var stash = context.stash; var output = ''; var error = null; try {
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}