-ScriptletProcessor
scriptlet.html
<html> <head> <meta http-equiv="content-type" content="text/html; charset=Shift_JIS"> <title>Maya samples</title> </head> <body> <div id="script" class="box"> テンプレート上のダミー文字列 </div> </body> </html>
scriptlet.maya
<?xml version="1.0" encoding="Shift_JIS"?> <maya xmlns:m="http://maya.seasar.org"> <m:scriptlet id="script" rendered="true" src="/sample/engine/scriptlet.js" encoding="Shift_JIS" exec="${ obj.run(); }"/> </maya>
scriptlet.js
obj = { run: function() { return 'こんにちは'; } };
意味伝わるかな?現在のSVNコミットバージョンで動きます。このプロセッサは実は重要なもので、今までc:outでやってたことをこれで代替することを推奨しようと思ってます。