You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
概要 JSmartyはPHPのSmartyを模したJavaScriptで動くテンプレートエンジンです。テンプレートAPI部分についてはSmartyを準拠しており、それ以外にも文字列処理が便利になるようにAPIを提供します。 デモ http://www.starmsg.net/samples/JSmarty/plugin.html ダウンロード http://code.google.com/p/jsmarty/downloads/list Hello World!! <script src="JSmarty.js"></script> <script src="JSmarty/Compiler.js"></script> var smarty = new JSmarty(); smarty.assign("foo", "Hello World!!"); smarty.display("str
PHPでクロージャ 作ってみたものの、実はあんまり用途が思い浮かんでない。 なんとなく、 array_walk がキーワードに浮かんでは来るけど。 てことで、とりあえず smarty で使ってみようと思う。 CakePHP を完全 smarty 化してみたものの、 smarty 内での配列の扱いが微妙だ。 ↓事の顛末はこの辺に。 http://d.hatena.ne.jp/am11op/20070614/1181837256 要は、php ならこう書くべきところを <?php echo $html->link('Edit', array('action'=>'edit', 2));?> smarty では view に変なメソッド作った上でこう書く必要があった。 {$html->link('Edit', $view->_array('action=>edit', 2))} まあ、これでもよ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く