ããã°ã©ã ã¨ãã¶ã¤ã³ãåé¢ããã®ã«å½¹ç«ã¤ã¢ã¸ã¥ã¼ã«ã HTMLã«<TMPL_VAR>ã®ãããªã¿ã°ãåãè¾¼ãã§ããã³ãã¬ã¼ããã¡ã¤ã«ãä½ãã ããã°ã©ã å´ã§ã¯ãã¿ã°ã®å ´æã«ãã¼ã¿ãå·®ãè¾¼ãã§åºåã§ããã æãå ¥ãã¦ãããé·ããªã£ãã®ã§ãã¡ã½ããé¢ä¿ã¯åé¢ãã¾ããã ãã®è¨äºã¯ããã³ãã¬ã¼ãã®ä½ãæ¹ããã³ãã¬ã¼ãã¿ã°ã«ã¤ãã¦ã§ãã # ãªãã¸ã§ã¯ããä½ã£ã¦ã use HTML::Template; myã$template = HTML::Template->new(filename => "ãã³ãã¬ã¼ããã¡ã¤ã«"); # ã¿ã°ã¨å¤ãç½®ãæã㦠$template->param(å¤æ°å => "å·®ãè¾¼ãå¤"); # åºå print "Content-Type: text/html\n\n"; print $template->output; ãã³ãã¬ã¼ãã®ä½ãæ¹ HTMLãã¡ã¤ã«ã®ä¸ã®ããã¼
{{#tags}}- {{label}}
{{/tags}}