Velocity
$("#foo").text("${var}"); ã®å ´åãã${var}ãã«å«ã¾ããXMLã¨ã³ãã£ãã£ã¯ã¨ã¹ã±ã¼ãããªãã¦ããã¨ãã¦ãã"ããã'ãã¯ã\ãã§ã¨ã¹ã±ã¼ãããªãã¨JavaScriptçã«ãã¡ãªãã§ã¯ãã¨æã£ããVelocityã«ã¡ããã¨æ©è½ãç¨æããã¦ãã¾ããããã¨ãXMLã¨ã³ãã£â¦
ããããã£ã"eventhandler.referenceinsertion.class"ãã¨ã"eventhandler.escape.html.match"ããè¨å®ãããã¨ã§ãåãè¾¼ã¿æååå ã®XMLã¨ã³ãã£ãã£ã®ã¨ã¹ã±ã¼ã(ã<>&ãâã<>&ã)ãè¡ãªã£ã¦ããã¾ãã ããã©ã«ãã¯ä½ãããªãã®ã§ãæ示çã«è¨å®ããå¿ â¦
次ã¯Velocityãªã®ã§ããã¨ãããã¨ã§ãã¨ããããHello World!çãªãã®ãæ¸ãã¦ã¿ã¾ããã // Velocityãåæå Velocity.init(); // ãã³ãã¬ã¼ãã«æ¸¡ãå¤ãä¿æããã³ã³ããã¹ããªãã¸ã§ã¯ããä½æ VelocityContext context = new VelocityContext(); contâ¦