Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Commit

Permalink
update documents to use cuma instead of clostache
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed May 11, 2013
1 parent 32abdae commit 0bb8159
Show file tree
Hide file tree
Showing 13 changed files with 60 additions and 60 deletions.
14 changes: 7 additions & 7 deletions doc/.template/posts/02-directory-structure.html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ TEXT
;; post setting
;; default value: #"(\d{4})[-_](\d{1,2})[-_](\d{1,2})[-_](.+)$"
:post-filename-regexp #"(\d{4})[-_](\d{1,2})[-_](\d{1,2})[-_](.+)$"
:post-filename-format "{{year}}-{{month}}/{{filename}}"
:post-filename-format "$(year)-$(month)/$(filename)"

;; post sort type (:date :name :title :date-desc :name-desc :title-desc)
;; default value: :date-desc
Expand All @@ -122,17 +122,17 @@ TEXT

;; notify setting(OPTIONAL)
:notify-setting {;; title for fixing notification
;; default value: "{{filename}}"
:fixed-title "{{filename}}"
;; default value: "$(filename)"
:fixed-title "$(filename)"
;; message for fixing notication
;; default value: "FIXED"
:fixed "FIXED"
;; title for failing notification
;; default value: "{{filename}} : {{line}}"
:failed-title "{{filename}} : {{line}}"
;; default value: "$(filename) : $(line)"
:failed-title "$(filename) : $(line)"
;; message for failing notification
;; default value: {{message}}
:failed "{{message}}"}
;; default value: $(message)
:failed "$(message)"}

;; compiler setting
;; default value: "default"
Expand Down
6 changes: 3 additions & 3 deletions doc/.template/posts/07-develop-compiler.html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,17 @@ CLJ)})
; (deftest foo-test
; (binding [*base-dir* "test"
; *config* (get-config)]
; (is (= "hello") (:template-dir *config*))))
; (is (= "hello" (:template-dir *config*)))))
(deftest* -config-test
; get compiler's config which is customized by `-config`
(is (= "hello {{name}}" (:message (get-config)))))
(is (= "hello" (:message (get-config)))))

(deftest* -compile-test
(let [in (template-file "foo.txt")
out (public-file "foo.txt")]
; call `-compile` to test your compling
(is (test-compile in))
(is (= "hello {{name}} world" (str/trim (slurp out))))
(is (= "hello world" (str/trim (slurp out))))

(.delete out)))
CLJ
Expand Down
4 changes: 2 additions & 2 deletions doc/.template/posts/08-pagination.html.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
:posts-per-page 5

;; filename format to generate index file with pagination
;; default value: "page{{page}}/{{filename}}"
;; default value: "page$(page)/$(filename)"
;; @page : page number(1..N)
;; @filename: front page's filename
;; @name : filename without last extension
;; @ext : file's last extension
:post-filename-format "page{{page}}/{{filename}}"
:post-filename-format "page$(page)/$(filename)"
}
CLJ

Expand Down
4 changes: 2 additions & 2 deletions doc/public/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initiali-scale=1.0, user-scalable=yes" name="viewport"><title>misaki document</title><link href="/favicon.ico" rel="shortcut icon"><link href="/atom.xml" rel="alternate" title="home" type="application/atom-xml"><link href="/misaki/css/prettify.css" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css"><link href="/misaki/css/main.css" rel="stylesheet" type="text/css"><link href="/misaki/css/extra.css" rel="stylesheet" type="text/css"><link href="/misaki/css/smartphone.css" media="only screen and (max-device-width:480px)" rel="stylesheet" type="text/css"></head><body><a class="github_ribbon" href="https://github.com/liquidz/misaki"><img alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" style="position: absolute; top: 0; right: 0; border: 0;"></a><div class="container"><header><h1><a href="/misaki/"><span class="first_char">h</span>ome</a></h1><p><p class="paragraph">misaki is <a href="https://github.com/mojombo/jekyll">Jekyll</a> inspired static site generator in <a href="http://clojure.org">Clojure</a>.</p></p></header><div class="column"><div class="w50per"><h2 id="G__5877"><span>D</span>ocuments<a class="dagger" href="#G__5877">&dagger;</a></h2><ul><li><span><a href="/misaki/toc/01-getting-started.html">Getting Started</a></span></li><li><span><a href="/misaki/toc/02-directory-structure.html">Directory Structure</a></span></li><li><span><a href="/misaki/toc/03-edit-template.html">Edit Template</a></span></li><li><span><a href="/misaki/toc/04-highlight-setting.html">Highlight Setting</a></span></li><li><span><a href="/misaki/toc/05-clojurescript.html">Clojurescript</a></span></li><li><span><a href="/misaki/toc/06-switch-compiler.html">Switch Compiler</a></span></li><li><span><a href="/misaki/toc/07-develop-compiler.html">Develop Compiler</a></span></li><li><span><a href="/misaki/toc/08-pagination.html">Pagination</a></span></li><li><span><a href="/misaki/toc/99-change-log.html">Change log</a></span></li></ul><h2 id="G__5878"><span>D</span>emo<a class="dagger" href="#G__5878">&dagger;</a></h2><ul><li><span><a href="/misaki/demo/blog/">Blog</a></span></li><li><span><a href="/misaki/demo/presentation/">Presentation</a></span></li></ul><h2 id="G__5879"><span>A</span>PI<a class="dagger" href="#G__5879">&dagger;</a></h2><ul><li><span><a href="/misaki/api/index.html">API Index</a></span></li><li><span>Built in functions<ul><li><span><a href="/misaki/api/misaki.compiler.default.html.core.html">misaki.compiler.default.html.core</a></span></li><li><span><a href="/misaki/api/misaki.compiler.default.html.conv.html">misaki.compiler.default.html.conv</a></span></li><li><span><a href="/misaki/api/misaki.compiler.default.html.util.html">misaki.compiler.default.html.util</a></span></li></ul></span></li></ul></div><div class="w50per"><h2 id="G__5880"><span>T</span>ry sample<a class="dagger" href="#G__5880">&dagger;</a></h2><pre class="prettyprint">$ git clone git://github.com/liquidz/misaki.git
<html lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initiali-scale=1.0, user-scalable=yes" name="viewport"><title>misaki document</title><link href="/favicon.ico" rel="shortcut icon"><link href="/atom.xml" rel="alternate" title="home" type="application/atom-xml"><link href="/misaki/css/prettify.css" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css"><link href="/misaki/css/main.css" rel="stylesheet" type="text/css"><link href="/misaki/css/extra.css" rel="stylesheet" type="text/css"><link href="/misaki/css/smartphone.css" media="only screen and (max-device-width:480px)" rel="stylesheet" type="text/css"></head><body><a class="github_ribbon" href="https://github.com/liquidz/misaki"><img alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" style="position: absolute; top: 0; right: 0; border: 0;"></a><div class="container"><header><h1><a href="/misaki/"><span class="first_char">h</span>ome</a></h1><p><p class="paragraph">misaki is <a href="https://github.com/mojombo/jekyll">Jekyll</a> inspired static site generator in <a href="http://clojure.org">Clojure</a>.</p></p></header><div class="column"><div class="w50per"><h2 id="G__4328"><span>D</span>ocuments<a class="dagger" href="#G__4328">&dagger;</a></h2><ul><li><span><a href="/misaki/toc/01-getting-started.html">Getting Started</a></span></li><li><span><a href="/misaki/toc/02-directory-structure.html">Directory Structure</a></span></li><li><span><a href="/misaki/toc/03-edit-template.html">Edit Template</a></span></li><li><span><a href="/misaki/toc/04-highlight-setting.html">Highlight Setting</a></span></li><li><span><a href="/misaki/toc/05-clojurescript.html">Clojurescript</a></span></li><li><span><a href="/misaki/toc/06-switch-compiler.html">Switch Compiler</a></span></li><li><span><a href="/misaki/toc/07-develop-compiler.html">Develop Compiler</a></span></li><li><span><a href="/misaki/toc/08-pagination.html">Pagination</a></span></li><li><span><a href="/misaki/toc/99-change-log.html">Change log</a></span></li></ul><h2 id="G__4329"><span>D</span>emo<a class="dagger" href="#G__4329">&dagger;</a></h2><ul><li><span><a href="/misaki/demo/blog/">Blog</a></span></li><li><span><a href="/misaki/demo/presentation/">Presentation</a></span></li></ul><h2 id="G__4330"><span>A</span>PI<a class="dagger" href="#G__4330">&dagger;</a></h2><ul><li><span><a href="/misaki/api/index.html">API Index</a></span></li><li><span>Built in functions<ul><li><span><a href="/misaki/api/misaki.compiler.default.html.core.html">misaki.compiler.default.html.core</a></span></li><li><span><a href="/misaki/api/misaki.compiler.default.html.conv.html">misaki.compiler.default.html.conv</a></span></li><li><span><a href="/misaki/api/misaki.compiler.default.html.util.html">misaki.compiler.default.html.util</a></span></li></ul></span></li></ul></div><div class="w50per"><h2 id="G__4331"><span>T</span>ry sample<a class="dagger" href="#G__4331">&dagger;</a></h2><pre class="prettyprint">$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
$ lein run samples/blog</pre><h2 id="G__5881"><span>m</span>isaki?<a class="dagger" href="#G__5881">&dagger;</a></h2><p class="paragraph">"misaki(美咲)" is woman's name in Japan, and it means "Bloom beautifully".</p><h2 id="G__5882"><span>L</span>icense<a class="dagger" href="#G__5882">&dagger;</a></h2><p class="paragraph">Copyright (C) 2013 Masashi Iizuka (<a href="http://twitter.com/uochan/">@uochan</a>)<br /> Distributed under the Eclipse Public License, the same as Clojure.</p></div></div><footer class="footer"><p><a href="http://twitter.com/uochan">@uochan</a>&nbsp; 2013</p><p><a href="https://github.com/liquidz/misaki"><img alt="misaki banner" src="/misaki/img/misaki_banner.svg"></a></p></footer></div><script src="/misaki/js/prettify.js" type="text/javascript"></script><script src="/misaki/js/lang-clj.js" type="text/javascript"></script><script src="/misaki/js/main.js" type="text/javascript"></script></body></html>
$ lein run samples/blog</pre><h2 id="G__4332"><span>m</span>isaki?<a class="dagger" href="#G__4332">&dagger;</a></h2><p class="paragraph">"misaki(美咲)" is woman's name in Japan, and it means "Bloom beautifully".</p><h2 id="G__4333"><span>L</span>icense<a class="dagger" href="#G__4333">&dagger;</a></h2><p class="paragraph">Copyright (C) 2013 Masashi Iizuka (<a href="http://twitter.com/uochan/">@uochan</a>)<br /> Distributed under the Eclipse Public License, the same as Clojure.</p></div></div><footer class="footer"><p><a href="http://twitter.com/uochan">@uochan</a>&nbsp; 2013</p><p><a href="https://github.com/liquidz/misaki"><img alt="misaki banner" src="/misaki/img/misaki_banner.svg"></a></p></footer></div><script src="/misaki/js/prettify.js" type="text/javascript"></script><script src="/misaki/js/lang-clj.js" type="text/javascript"></script><script src="/misaki/js/main.js" type="text/javascript"></script></body></html>
4 changes: 2 additions & 2 deletions doc/public/toc/01-getting-started.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initiali-scale=1.0, user-scalable=yes" name="viewport"><title>misaki document - Getting Started</title><link href="/favicon.ico" rel="shortcut icon"><link href="/atom.xml" rel="alternate" title="Getting Started" type="application/atom-xml"><link href="/misaki/css/prettify.css" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css"><link href="/misaki/css/main.css" rel="stylesheet" type="text/css"><link href="/misaki/css/extra.css" rel="stylesheet" type="text/css"><link href="/misaki/css/smartphone.css" media="only screen and (max-device-width:480px)" rel="stylesheet" type="text/css"></head><body><a class="github_ribbon" href="https://github.com/liquidz/misaki"><img alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" style="position: absolute; top: 0; right: 0; border: 0;"></a><div class="container"><article><div class="page-header"><h1 id="G__5908"><a href="/misaki/">Getting Started</a><a class="dagger" href="#G__5908">&dagger;</a></h1><div class="tag"><ul></ul></div><p class="date"></p></div><div class="post"><h2 id="G__5905"><span>R</span>unning sample<a class="dagger" href="#G__5905">&dagger;</a></h2><pre class="prettyprint">$ git clone git://github.com/liquidz/misaki.git
<html lang="en"><head><meta charset="utf-8"><meta content="width=device-width, initiali-scale=1.0, user-scalable=yes" name="viewport"><title>misaki document - Getting Started</title><link href="/favicon.ico" rel="shortcut icon"><link href="/atom.xml" rel="alternate" title="Getting Started" type="application/atom-xml"><link href="/misaki/css/prettify.css" rel="stylesheet" type="text/css"><link href="http://fonts.googleapis.com/css?family=Josefin+Sans" rel="stylesheet" type="text/css"><link href="/misaki/css/main.css" rel="stylesheet" type="text/css"><link href="/misaki/css/extra.css" rel="stylesheet" type="text/css"><link href="/misaki/css/smartphone.css" media="only screen and (max-device-width:480px)" rel="stylesheet" type="text/css"></head><body><a class="github_ribbon" href="https://github.com/liquidz/misaki"><img alt="Fork me on GitHub" src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" style="position: absolute; top: 0; right: 0; border: 0;"></a><div class="container"><article><div class="page-header"><h1 id="G__4046"><a href="/misaki/">Getting Started</a><a class="dagger" href="#G__4046">&dagger;</a></h1><div class="tag"><ul></ul></div><p class="date"></p></div><div class="post"><h2 id="G__4043"><span>R</span>unning sample<a class="dagger" href="#G__4043">&dagger;</a></h2><pre class="prettyprint">$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
$ lein run samples/blog</pre><p class="paragraph">Access <a href="http://localhost:8080">http://localhost:8080</a></p><h2 id="G__5906"><span>M</span>ake your own blog<a class="dagger" href="#G__5906">&dagger;</a></h2><p class="paragraph">Copy sample directory.</p><pre class="prettyprint">$ cp -pir samples/blog your_blog</pre><p class="paragraph">Run develop server.</p><pre class="prettyprint">$ lein run your_blog</pre><p class="paragraph">If you want to do compiling only, use <code class="prettyprint">--compile</code> option.</p><pre class="prettyprint">$ lein run your_blog --compile</pre><p class="paragraph">Edit templates. If you update template files, misaki will compile them <strong>automatically</strong>, and you can preview at <a href="http://localhost:8080">http://localhost:8080</a> immediately.</p><pre class="prettyprint">$ vi your_blog/templates/index.html.clj</pre><h2 id="G__5907"><span>S</span>ee also..<a class="dagger" href="#G__5907">&dagger;</a></h2><ul><li><span><p class="paragraph"><a href="/misaki/toc/02-directory-structure.html">Directory Structure</a></p></span></li><li><span><p class="paragraph"><a href="/misaki/toc/03-edit-template.html">Edit Template</a></p></span></li></ul><p class="paragraph pager"><a href="/misaki/">Top Page</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/misaki/toc/02-directory-structure.html">Directory Structure&nbsp;&raquo;</a></p></div></article><footer class="footer"><p><a href="http://twitter.com/uochan">@uochan</a>&nbsp; 2013</p><p><a href="https://github.com/liquidz/misaki"><img alt="misaki banner" src="/misaki/img/misaki_banner.svg"></a></p></footer></div><script src="/misaki/js/prettify.js" type="text/javascript"></script><script src="/misaki/js/lang-clj.js" type="text/javascript"></script><script src="/misaki/js/main.js" type="text/javascript"></script></body></html>
$ lein run samples/blog</pre><p class="paragraph">Access <a href="http://localhost:8080">http://localhost:8080</a></p><h2 id="G__4044"><span>M</span>ake your own blog<a class="dagger" href="#G__4044">&dagger;</a></h2><p class="paragraph">Copy sample directory.</p><pre class="prettyprint">$ cp -pir samples/blog your_blog</pre><p class="paragraph">Run develop server.</p><pre class="prettyprint">$ lein run your_blog</pre><p class="paragraph">If you want to do compiling only, use <code class="prettyprint">--compile</code> option.</p><pre class="prettyprint">$ lein run your_blog --compile</pre><p class="paragraph">Edit templates. If you update template files, misaki will compile them <strong>automatically</strong>, and you can preview at <a href="http://localhost:8080">http://localhost:8080</a> immediately.</p><pre class="prettyprint">$ vi your_blog/templates/index.html.clj</pre><h2 id="G__4045"><span>S</span>ee also..<a class="dagger" href="#G__4045">&dagger;</a></h2><ul><li><span><p class="paragraph"><a href="/misaki/toc/02-directory-structure.html">Directory Structure</a></p></span></li><li><span><p class="paragraph"><a href="/misaki/toc/03-edit-template.html">Edit Template</a></p></span></li></ul><p class="paragraph pager"><a href="/misaki/">Top Page</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="/misaki/toc/02-directory-structure.html">Directory Structure&nbsp;&raquo;</a></p></div></article><footer class="footer"><p><a href="http://twitter.com/uochan">@uochan</a>&nbsp; 2013</p><p><a href="https://github.com/liquidz/misaki"><img alt="misaki banner" src="/misaki/img/misaki_banner.svg"></a></p></footer></div><script src="/misaki/js/prettify.js" type="text/javascript"></script><script src="/misaki/js/lang-clj.js" type="text/javascript"></script><script src="/misaki/js/main.js" type="text/javascript"></script></body></html>
Loading

0 comments on commit 0bb8159

Please sign in to comment.