<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/clojure/">
    <title>clojure @ wiki</title>
    <link>http://w.atwiki.jp/clojure/</link>
    <atom:link href="https://w.atwiki.jp/clojure/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>clojure @ wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2012-04-19T23:47:30+09:00</dc:date>
    <utime>1334846850</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/18.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/17.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/clojure/pages/15.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/24.html">
    <title>未整理</title>
    <link>https://w.atwiki.jp/clojure/pages/24.html</link>
    <description>
      * とりあえずメモ
-[[count]]    </description>
    <dc:date>2012-04-19T23:47:30+09:00</dc:date>
    <utime>1334846850</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/23.html">
    <title>count</title>
    <link>https://w.atwiki.jp/clojure/pages/23.html</link>
    <description>
      * count
function
Usage: (count coll)

** 原文[http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/count]
&gt;&gt;
Returns the number of items in the collection. (count nil) returns
0.  Also works on strings, arrays, and Java Collections and Maps
Added in Clojure version 1.0
&lt;&lt;

** 訳
コレクションの要素数を返す。
nil に対しては、0を返す。
&gt;||
(count nil)

&gt; 0
||&lt;

文字列(strings)、配列(arrays)およびJavaのコレクションやMapに対しても同様に動作する。    </description>
    <dc:date>2012-04-19T23:46:08+09:00</dc:date>
    <utime>1334846768</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/22.html">
    <title>ring-プラグイン</title>
    <link>https://w.atwiki.jp/clojure/pages/22.html</link>
    <description>
      * インストール
:dev-dependencies に以下を追加
&gt;||
[lein-ring &quot;0.4.5&quot;]
||&lt;

* コマンド
lein ring {コマンド名}で実行可能

|*コマンド名|*説明|*コメント|
|server|Ringサーバを起動し、ブラウザで開く。|開発環境で動作をテストするときなどに便利|
|servier-headless |ブラウザを開かず、Ringサーバを起動する。|実行環境用？CUI環境で実行するときはこちらのコマンドを利用するとよい。|
|war|サーブレットコンテナ上で実行するためのwarを作成する。作成されるWarのファイル名は{プロジェクト名}-{バージョン}.war になる。|tomcatなどに配備する用かな。試したこと無い|
|uberwar|上記と同様にwarファイルを作成するが、こちらは依存ライブラリ一式を含める。|依存関係ごと固めたいならこちら|

* サンプル
 *project.clj
&gt;||
(defproject sample &quot;1.0.0-SNAPSHOT&quot;
  :description &quot;This project is sample for lein-ring&quot;
  :dependencies [[org.clojure/clojure &quot;1.2.1&quot;]
        [org.clojure/clojure-contrib &quot;1.2.0&quot;]
        [compojure &quot;0.6.4&quot;]
  :dev-dependencies [[lein-ring &quot;0.4.5&quot;]]
  :ring {:handler sample.core/app})
||&lt;


以下の記述で、起動時に、core/app メソッドが実行される
&gt;||
:ring {:handler hentai.core/app} 
||&lt;    </description>
    <dc:date>2012-04-16T23:24:57+09:00</dc:date>
    <utime>1334586297</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/21.html">
    <title>Eclipseプラグイン</title>
    <link>https://w.atwiki.jp/clojure/pages/21.html</link>
    <description>
      *Eclipseプロジェクト作成
clojure.cljに
:dev-dependencies を追加
&gt;||
(defproject app-name &quot;1.0.0-SNAPSHOT&quot;
  :description &quot;Write Description&quot;
  :dependencies [
        [org.clojure/clojure &quot;1.1.0&quot;]
        [org.clojure/clojure-contrib &quot;1.1.0&quot;]
  ]
  :dev-dependencies [
        [lein-eclipse &quot;1.0.0&quot;]
  ]
)
||&lt;

terminalから、次を実行
&gt;||
lein deps
lein eclipse
||&lt;    </description>
    <dc:date>2012-04-16T22:50:19+09:00</dc:date>
    <utime>1334584219</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/20.html">
    <title>プラグイン集</title>
    <link>https://w.atwiki.jp/clojure/pages/20.html</link>
    <description>
      |*プラグイン|*概要|
|[[Eclipseプラグイン]] |LeiningenプロジェクトをEclipseプロジェクトとして扱うためのプラグイン|
|[[ring-プラグイン]]|leiningenからringサーバを扱うためのプラグイン|    </description>
    <dc:date>2012-04-16T12:35:18+09:00</dc:date>
    <utime>1334547318</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/19.html">
    <title>fleet</title>
    <link>https://w.atwiki.jp/clojure/pages/19.html</link>
    <description>
      準備中    </description>
    <dc:date>2012-04-16T12:29:45+09:00</dc:date>
    <utime>1334546985</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/18.html">
    <title>enlive</title>
    <link>https://w.atwiki.jp/clojure/pages/18.html</link>
    <description>
       *準備中

テンプレートの反映にサーバの再起動が必要    </description>
    <dc:date>2012-04-21T10:08:04+09:00</dc:date>
    <utime>1334970484</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/17.html">
    <title>Compojure</title>
    <link>https://w.atwiki.jp/clojure/pages/17.html</link>
    <description>
      準備中

* 利用準備

** lein設定
&gt;|
TODO
||&lt;

** 起動方法
+ leiningenから
+ Clojreプログラム中から

** ルーティング

** Cookie

** パラメータ    </description>
    <dc:date>2012-04-16T12:28:00+09:00</dc:date>
    <utime>1334546880</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/16.html">
    <title>Leiningen インストール</title>
    <link>https://w.atwiki.jp/clojure/pages/16.html</link>
    <description>
      ** ＊nixにインストール
+ スクリプトインストール
↓このスクリプトをダウンロードし、パスの通ったフォルダに置く。もしくは、パスを通す
[https://raw.github.com/technomancy/leiningen/stable/bin/lein]
+ 実行権限の設定
&gt;||
$ chmod a+x /YOUR_PATH/lein
||&lt;
+ self-updateの実行
下記コマンドを実行することで、インストール完了。
&gt;||
$ lein self-install
||&lt;

とっても簡単ですね
Cygwinも同じ方法で設定できる模様

** Windowsにインストール
Windowsについてもlein.batがあります
+ lein.batをダウンロード
https://raw.github.com/technomancy/leiningen/stable/bin/lein.bat
+ パスを通す
+ lein self-installを実行

TODO 

* 参考
Leiningenで簡単Clojureプロジェクト http://d.hatena.ne.jp/t2ru/20100123/1264199643    </description>
    <dc:date>2012-04-17T01:33:34+09:00</dc:date>
    <utime>1334594014</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/clojure/pages/15.html">
    <title>Leiningenまとめ</title>
    <link>https://w.atwiki.jp/clojure/pages/15.html</link>
    <description>
      *Index
-[[Leiningen インストール]]
-[[プラグイン集]]

*コマンドまとめ
|*new|プロジェクト新規作成|
|*deps|依存ライブラリ取得|
|*repl|replを起動する|
|*test|テストを実行する|
|*jar|jarファイルを作成する|
|*uberjar|依存ライブラリを含めたjarファイルを作成する|

*ライブラリの利用
** clojarから取得


** サードパーティリポジトリからの取得
以下のキーに対してリポジトリを登録する
&gt;||
:repositories 
||&lt;

** mavenリポジトリから取得

* project.cljの記述
ここ([https://github.com/technomancy/leiningen/blob/stable/sample.project.clj:title=sample.project.clj])を参照    </description>
    <dc:date>2012-04-18T12:19:54+09:00</dc:date>
    <utime>1334719194</utime>
  </item>
  </rdf:RDF>
