Smartyインストール
maple のテンプレートエンジンには HTML_Template_Flexy ではなく、Smartyを使うことにした。
以下にアクセス
http://smarty.php.net/download.php
もういちど、ダサいやり方で、ダウンロードリンクを右クリック→プロパティ 表示されたURLをコピー
玄箱から wget でダウンロードする。
$ wget http://smarty.php.net/do_download.php?download_file=Smarty-2.6.18.tar.gz --23:30:12-- http://smarty.php.net/do_download.php?download_file=Smarty-2.6.18.tar.gz => `do_download.php?download_file=Smarty-2.6.18.tar.gz' smarty.php.net をDNSに問いあわせています... 69.147.83.196 smarty.php.net[69.147.83.196]:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 302 Found 場所: http://smarty.php.net/distributions/Smarty-2.6.18.tar.gz [続く] --23:30:12-- http://smarty.php.net/distributions/Smarty-2.6.18.tar.gz => `Smarty-2.6.18.tar.gz' smarty.php.net[69.147.83.196]:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 153,299 [application/x-tar] 100%[=====================================================================>] 153,299 58.92K/s 23:30:15 (58.74 KB/s) - `Smarty-2.6.18.tar.gz' を保存しました [153299/153299]
解凍&コピー
Smartyのlibs に含まれるライブラリだけを移動させる。
$ tar xvfz Smarty-2.6.18.tar.gz Smarty-2.6.18/ ... Smarty-2.6.18/unit_test/templates/parse_math.tpl /home/mpl/work $ cp -r Smarty-2.6.18/libs/* /home/mpl/maple/smarty/