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
Get Started Install Swig npm install swig Create Your Template <h1>{{ pagename|title }}</h1> <ul> {% for author in authors %} <li{% if loop.first%} class="first"{% endif %}> {{ author }} </li> {% else %} <li>There are no authors.</li> {% endfor %} </ul> Render Your Template var template = require('swig'); var tmpl = template.compileFile('/path/to/template.html'); tmpl.render({ pagename: 'awesome p
そんな組み合わせを使う機会に恵まれたのでせっかくだからメモ。 websocketとかやりたい人はそれようのサンプルがいっぱいあると思うのでそっちを見たほうがいいです。 mongodb は既にインストールされていることを前提として書きます。 # node.js のインストール $ git clone git://github.com/ry/node.git $ cd node $ ./configure $ make $ sudo make install node.js がインストールできたら、ruby でいうところの gem のような npm をインストールして便利なものを追加していきます。 # npm のインストール $ curl http://npmjs.org/install.sh | sudo sh # node.js 用フレームワーク express のインストール $ sud
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く