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 ãå±éããããã¨ãã§ããã¨ãã
December 27, 200517:39 TT ã§XSS対ç ã«ãã´ãªæè¡ãã¿ ããã©ã«ã㧠HTML ãã£ã«ã¿ããããã£ã¦è©±ã ãããªæã㧠STASH ç¶æ¿ãã¡ããã£ã¦ã®ã¯ã©ãã§ããã http://shebang.jp/src/cpan/Template-Stash-EscapeHTML-0.01.tar.gz CPAN ã«ãä¸å¿ããã¦ã¿ãã package Template::Stash::EscapeHTML; use strict; use Template::Config; use base ($Template::Config::STASH); our $VERSION = '0.01'; sub get { my($self, @args) = @_; my($var) = $self->SUPER::get(@args); unless (ref($var)) {
ãã³ãã¬ã¼ããã¼ã«ãããããã¥ã¢ã« è·å ´ã§TTã使ã£ã¦ããæã«å°ããã¤è¨³ãããã®ã§ããéä¸ããåãããªãæããã£ã¦ãããªãé©å½ãèªå翻訳ããã¯ãã·ãããã¨ããç¨åº¦ã§ãã 追è¨ã»ä¿®æ£æè¿ã質åä¸å¯ãâ ãããã(public@hakoniwa.net) ãªãªã¸ãã«ããã¥ã¢ã« http://www.template-toolkit.org/docs/plain/Manual/Directives.html CPAN http://search.cpan.org/~abw/Template-Toolkit-2.14/ æ¦è¦ 解説 ãã³ãã¬ã¼ãå¤æ°ã¸ã®ã¢ã¯ã»ã¹ GET CALL SET DEFAULT ä»ã®ãã³ãã¬ã¼ããã¡ã¤ã«ã»ãããã¯ã®å¦ç INSERT INCLUDE PROCESS WRAPPER BLOCK æ¡ä»¶å¦ç IF / UNLESS / ELSIF / ELSE SWITCH /
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}