Giter Site home page Giter Site logo

misaki's Introduction

misaki logo

Build Status

misaki is a Jekyll inspired static site generator in Clojure.

What's new in Beta

  • Clojurescript
  • Output customize
  • Viewable with smartphone
  • Expand built-in functions

Demo

Example template

;; Define template options here
; @layout  default
; @title   sample template

;; You can define function
(defn h1 [s] [:h1 s])

(h1 (:title site))
[:p "Welcome to misaki world!"]

#-CLJ
(println "google-code-prettify highlight!")
CLJ

Usage

Run sample

$ git clone git://github.com/liquidz/misaki.git
$ cd misaki
$ lein run samples/blog

If you get "java.lang.AssertionError: Assert failed: Can't recur here", please execute rm -rf classes/cljs to remove cljs classes, and run sample again.

Access http://localhost:8080 to check sample.

Make your blog

$ cp -pir samples/blog your-blog
$ lein run your-blog

While running local server, updated template file is compiled automatically.

$ vi your-blog/_template/index.html.clj

Document

http://liquidz.github.com/misaki/

"misaki" means..

"misaki(美咲)" is woman's name in Japan, and it means "Bloom beautifully".

License

Copyright (C) 2013 Masashi Iizuka(@uochan)

Distributed under the Eclipse Public License, the same as Clojure.

misaki's People

Contributors

ayamada avatar ciarand avatar edtsech avatar geeber avatar ipavl avatar lhanson avatar liquidz avatar mcburton avatar mt avatar nauhygon avatar randymorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

misaki's Issues

The keys `:layout-dir "something/"` and `:detail-log true` are mandatory in _config.clj

I'm preparing a presentation on misaki, where I'll incrementally build a website in front of the audience using misaki. I'd like to start with an empty _config.clj and add pieces as I need them. However, the following appears to be the minimal required configuration:

{
  :layout-dir "something/"
  :detailed-log true
}

I suggest :layout-dir is implicitly set to ., the same as for :public-dir and :template-dir, and remove the need for any :detailed-log declaration either (what's the use of it, by the way?)

Please note that :detailed-log false results in no templates being compiled.

"*name*" always expanded to <em>name</em> in string.

どういうことかというと、ブログ中にインラインで (lisp で変数名等でありがちな) *name*
(*は半角)と書くと、html/core.clj 内の parse-emphasized によって [:em name] に置き換えられてしまいます。

markdown の書式上は理にかなっているのですが、lisp や clojure のコードをブログの中で記述
したいときに困ってしまいます(かと言って、良いアイデアが思いつかないので困っています。
エスケープキャラクタなんてものは気持ち悪いし...)。

良い回避方法が無いのであれば、全角*で逃げるか、適当な関数をでっち上げて画像として * を
埋め込むとかしますが...。

どうしようもないのであれば、この Issue はクローズしてください。

'lein run samples/blog' resulting in 'java.io.FileNotFoundException: Could not locate clojure/tools/namespace/find__init.class or ...' (on Windows)

Hi,

Yesterday I cloned misaki, did a 'lein run samples/blog' and got

clojure.lang.Compiler$CompilerException: java.io.FileNotFoundException: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath: , compiling:(cider/nrepl/middleware/inspect.clj:1:1)
 at clojure.lang.Compiler.load (Compiler.java:7142)
    clojure.lang.RT.loadResourceScript (RT.java:370)
    clojure.lang.RT.loadResourceScript (RT.java:361)
    clojure.lang.RT.load (RT.java:440)
    clojure.lang.RT.load (RT.java:411)
    clojure.core$load$fn__5066.invoke (core.clj:5641)
    clojure.core$load.doInvoke (core.clj:5640)
    clojure.lang.RestFn.invoke (RestFn.java:408)
    clojure.core$load_one.invoke (core.clj:5446)
    clojure.core$load_lib$fn__5015.invoke (core.clj:5486)
    clojure.core$load_lib.doInvoke (core.clj:5485)
    clojure.lang.RestFn.applyTo (RestFn.java:142)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$load_libs.doInvoke (core.clj:5524)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$require.doInvoke (core.clj:5607)
    clojure.lang.RestFn.invoke (RestFn.java:930)
    cider.nrepl$eval608$loading__4958__auto____609.invoke (nrepl.clj:1)
    cider.nrepl$eval608.invoke (nrepl.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6703)
    clojure.lang.Compiler.eval (Compiler.java:6692)
    clojure.lang.Compiler.load (Compiler.java:7130)
    clojure.lang.RT.loadResourceScript (RT.java:370)
    clojure.lang.RT.loadResourceScript (RT.java:361)
    clojure.lang.RT.load (RT.java:440)
    clojure.lang.RT.load (RT.java:411)
    clojure.core$load$fn__5066.invoke (core.clj:5641)
    clojure.core$load.doInvoke (core.clj:5640)
    clojure.lang.RestFn.invoke (RestFn.java:408)
    clojure.core$load_one.invoke (core.clj:5446)
    clojure.core$load_lib$fn__5015.invoke (core.clj:5486)
    clojure.core$load_lib.doInvoke (core.clj:5485)
    clojure.lang.RestFn.applyTo (RestFn.java:142)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$load_libs.doInvoke (core.clj:5524)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$require.doInvoke (core.clj:5607)
    clojure.lang.RestFn.invoke (RestFn.java:436)
    cider_nrepl.plugin$eval602$loading__4958__auto____603.invoke (plugin.clj:1)
    cider_nrepl.plugin$eval602.invoke (plugin.clj:1)
    clojure.lang.Compiler.eval (Compiler.java:6703)
    clojure.lang.Compiler.eval (Compiler.java:6692)
    clojure.lang.Compiler.load (Compiler.java:7130)
    clojure.lang.RT.loadResourceScript (RT.java:370)
    clojure.lang.RT.loadResourceScript (RT.java:361)
    clojure.lang.RT.load (RT.java:440)
    clojure.lang.RT.load (RT.java:411)
    clojure.core$load$fn__5066.invoke (core.clj:5641)
    clojure.core$load.doInvoke (core.clj:5640)
    clojure.lang.RestFn.invoke (RestFn.java:408)
    clojure.core$load_one.invoke (core.clj:5446)
    clojure.core$load_lib$fn__5015.invoke (core.clj:5486)
    clojure.core$load_lib.doInvoke (core.clj:5485)
    clojure.lang.RestFn.applyTo (RestFn.java:142)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$load_libs.doInvoke (core.clj:5524)
    clojure.lang.RestFn.applyTo (RestFn.java:137)
    clojure.core$apply.invoke (core.clj:626)
    clojure.core$require.doInvoke (core.clj:5607)
    clojure.lang.RestFn.invoke (RestFn.java:408)
    leiningen.core.utils$require_resolve.invoke (utils.clj:80)
    leiningen.core.project$apply_middleware.invoke (project.clj:743)
    clojure.lang.ArrayChunk.reduce (ArrayChunk.java:58)
    clojure.core.protocols/fn (protocols.clj:98)
    clojure.core.protocols$fn__6057$G__6052__6066.invoke (protocols.clj:19)
    clojure.core.protocols/fn (protocols.clj:147)
    clojure.core.protocols$fn__6057$G__6052__6066.invoke (protocols.clj:19)
    clojure.core.protocols$seq_reduce.invoke (protocols.clj:31)
    clojure.core.protocols/fn (protocols.clj:54)
    clojure.core.protocols$fn__6031$G__6026__6044.invoke (protocols.clj:13)
    clojure.core$reduce.invoke (core.clj:6289)
    leiningen.core.project$apply_middleware.invoke (project.clj:740)
    leiningen.core.project$activate_middleware.invoke (project.clj:771)
    leiningen.core.project$init_project.invoke (project.clj:878)
    leiningen.core.project$read.invoke (project.clj:952)
    leiningen.core.project$read.invoke (project.clj:953)
    leiningen.core.main$_main$fn__6160.invoke (main.clj:388)
    leiningen.core.main$_main.doInvoke (main.clj:385)
    clojure.lang.RestFn.invoke (RestFn.java:421)
    clojure.lang.Var.invoke (Var.java:383)
    clojure.lang.AFn.applyToHelper (AFn.java:156)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.core$apply.invoke (core.clj:624)
    clojure.main$main_opt.invoke (main.clj:315)
    clojure.main$main.doInvoke (main.clj:420)
    clojure.lang.RestFn.invoke (RestFn.java:457)
    clojure.lang.Var.invoke (Var.java:394)
    clojure.lang.AFn.applyToHelper (AFn.java:165)
    clojure.lang.Var.applyTo (Var.java:700)
    clojure.main.main (main.java:37)
Caused by: java.io.FileNotFoundException: Could not locate clojure/tools/namespace/find__init.class or clojure/tools/namespace/find.clj on classpath:
...

lein deps :tree did the same.

Other local projects I checked did work...

Sample blog won't compile on windows

Just trying out the basic install.

$ lein run test-blog/

  • Compiling all templates
  • Compiling atom.xml.clj

java.io.FileNotFoundException: test-blog\public\test-blog\template\atom.xml (The system cannot find the path specified)
at misaki.util.file$write_file / invoke (file.clj:152)
at misaki.compiler.default.core$compile_STAR_ / invoke (core.clj:237)
at misaki.compiler.default.core$compile_template / invoke (core.clj:256)
at misaki.compiler.default.core$compile$fn__2553 / invoke (core.clj:70)
at misaki.compiler.default.core$compile / invoke (core.clj:58)
at misaki.core$call_compiler_fn / doInvoke (core.clj:55)
at misaki.core$compile_STAR
$fn__852 / invoke (core.clj:160)
at misaki.util.sequence$some_with_default_value / invoke (sequence.clj:44)
at misaki.core$compile_STAR
/ invoke (core.clj:167)
at misaki.core$call_all_compile / invoke (core.clj:185)
at misaki.server$do_all_compile / invoke (server.clj:52)
at misaki.server$_main / doInvoke (server.clj:91)
FAIL in 0.491 sec

  • Finish Compiling
  • starting server: http://localhost:8080/
    2013-08-31 08:26:18.025:INFO:oejs.Server:jetty-7.6.1.v20120215
    2013-08-31 08:26:18.082:INFO:oejs.AbstractConnector:Started [email protected]:8080

Notify compile error with Growl(GNTP).

[Enhancement]
misaki.server でテンプレートをガシガシいじっているときに、ミスをしてコンパイルエラーになってしまうことがままありますが、その時 Growl 等で通知を出していただけるとありがたいのですが...(ブラウザとEmacsが画面を占領しているので、エラーを起こした時に何度ブラウザを reload しても変更が反映されない、ということがよくあるので...)。

https://gist.github.com/3254119

ちなみに私が使っている Growl 1.4 (AppStore 経由でインストール) ではどうも UDP では繋がらないようで、 clj-growl は使えませんでした。

(あと、上記 gist で使っている clj-gntp の中身はちょっと微妙な感じ(引数の渡し方とか。Javaから呼び出すことを意識している?)なので、独自に再実装したほうがよいのかもしれません。あと、上記 gist は私の Mac でしかテストしていません...)

Templates under directories

"foo/bar.html.clj" should be compiled as "public/foo/bar.html".
Current version compiled as "public/bar.html", "foo" directory is ignored.

fix default compiler.

Compile with multiple compilers

from @bouzuya

_config.clj

{
 ; other settings
 :compiler ["foo" "bar"]
 }
  • misaki.serverでは foo, bar がそれぞれ扱う拡張子の両方を監視する
  • misaki.serverは拡張子毎にどのコンパイラに処理させるかを判断する
  • 1つの拡張子を複数コンパイラが扱う場合には :compiler オプションで最初に指定されているコンパイラに処理を回す
    • コンパイル結果が正常終了を示すものであれば、コンパイルはそこで終了。次のコンパイラへは処理を回さない
    • コンパイラのコンパイル結果がスキップ(真偽値でも文字列でもマップでもない)の場合、misaki.serverは次に指定されたコンパイラに処理を回す

Allow intermixing of compiler technologies

It would be handy if a template using the default compiler could e.g. use a layout from the clostache compiler, or render clostache templates programmatically inside its content.

Incompatibility with Clojure 1.7.0 onward

When I edit project.clj Clojure dependency to version 1.7.0 (or later) it fails as follows:

» lein run samples/blog
 * Compiling all templates
 * Compiling atom.xml.clj

java.lang.RuntimeException: Wrong number of args (4) passed to: code/here-code
   at misaki.reader / read-sexp (2012-02-02-post2.html.clj:6)
   FAIL in 0.185 sec
 * Finish Compiling
 * starting server:  http://localhost:8080/
2017-06-20 02:05:18.719:INFO:oejs.Server:jetty-7.6.1.v20120215
2017-06-20 02:05:18.751:INFO:oejs.AbstractConnector:Started [email protected]:8080

Initial compile

When I run lein run ***, do not compile each templates but all templates once.

HTML formatting...

hi, how do i use HTML/CSS formatting for entries? I wanted to bold, italicize, and insert images but things like :

(html [:strong "zzzzzz"]) or
(strong "bold me please")
didn't work.

i'm a total clojure n00b, but would there be a way to make it easy to quickly bold and italicize text (ideally like markdown) without having to write a markdown parser/extension yet? (it would take me a long time to learn enough clojure to do that, as my clojure skills are currently : nil list.

lein template suggestion

It would be nice to create a lein template for a skeleton site, so that it's not necessary to clone the repo from git to use it.

duplicated declaration in misaki/config.clj

全く実害はないので全く急ぎませんが、見つけてしまったので一応報告だけさせていただきます。

site の declare が misaki/config.clj の中で重複して存在しています。

https://gist.github.com/3274146

issue#17 の作業が master に反映される頃に治っていればよいかも、です。(治ってなくても当方支障ありませんw)

Method for allowing pagination

I'm using Misaki for my new blog, and just realized there's no way to have a something like a frontpage that has pagination. There's a 1-to-1 mapping between posts and the pages they generate, and I don't see how you would define a page (like index.html) that would actually compile to many pages with pagination.

set-base-dir! problem

複数のテストファイルのnamespace直下で利用した場合に、
意図した通りにテストのベースディレクトリが設定されない。

lein testなどした時に一番最後に実行されるテストのベースディレクトリになってしまう

clj-growl refers clojure-1.2.0-RC1, so "lein deps" failed.

clj-growl が依存している jar ファイルに clojure-1.2.0-RC1 というのがあるのですが、すでに mvn , clojars 等々には存在していないようなので、ローカルの .m2/repository/ がまっさらな状態で misaki を git clone して lein deps するとエラーになります。

$ lein deps
Could not find artifact org.clojure:clojure:pom:1.2.0-RC1 in central (http://repo1.maven.org/maven2)
Could not find artifact org.clojure:clojure:pom:1.2.0-RC1 in clojars (https://clojars.org/repo/)
Could not find artifact org.clojure:clojure:pom:1.2.0-RC1 in sonatype-snapshots (https://oss.sonatype.org/content/repositories/snapshots/)
Retrieving org/clojure/clojure/1.2.0-RC1/clojure-1.2.0-RC1.pom (1k)
from http://build.clojure.org/releases/
$ 

このことは、clj-growl の作者さん( brentonashworth on Github ) には Issue 1 として報告済(下手くそな英語ですが...) なのですが、最近 activity が無いようです。

なのでこの際、clj-growl は misaki から外す(説明書きを加えてオプション的位置づけにする)等の対策が必要だと思います(growl 対応は私が要望を出したので、こんなことを言うのもアレですが...)。

atom.xml の中の link 先が localhost:8080 を指してしまっている

samples/blog の中の atom.xml.clj のリンク先とか id とかが、localhost:8080 になってしまっていて、Google Reader とかで見たときに参照先に飛べないような状態です。自分の feed だけ適当に直すという方法もなくはないのですが、せっかくなので samples/blog のものをちゃんとしたリファレンス実装にしていただけると助かります。

以下、atom.xml.clj 抜粋:

; @base http://localhost:8080

"<?xml version=\"1.0\" encoding=\"utf-8\"?>"
[:feed {:xmlns "http://www.w3.org/2005/Atom"}
 [:title (:site-title site)]
 [:link {:href (str (:base site) "/atom.xml"), :rel "self"}]
 [:link {:href (:base site)}]
 [:updated (date->xml-schema (:date site))]
 [:id (:base site)]
 [:author [:name "@uochan"]]

Evaling order is incorrect

Compling a template which has a layout, evaling order is incorrect.

correct: layout -> template
wrong(now): template -> layout

Error where running blog sample

I am using lein 2.1.3 on Windows 8 x64 with Java 1.7.0_17 64-bit.

When I execute lein run samples\blog on the github master branch, this is what happens:

 * Compiling ←[1mall templates←[22m
 * Compiling ←[1matom.xml.clj←[22m

←[4mjava.io.FileNotFoundException: .\samples\blog\public\.\samples\blog\template\atom.xml (The system cannot find the pa
th specified)←[24m
   at misaki.util.file$write_file / ←[1minvoke←[22m (←[31mfile.clj←[0m:←[31m←[1m152←[22m←[0m)
   at misaki.compiler.default.core$compile_STAR_ / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m237←[22m←[0m)
   at misaki.compiler.default.core$compile_template / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m256←[22m←[0m)
   at misaki.compiler.default.core$_compile$fn__2905 / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m70←[22m←[0m)
   at misaki.compiler.default.core$_compile / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m58←[22m←[0m)
   at misaki.core$call_compiler_fn / ←[1mdoInvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m55←[22m←[0m)
   at misaki.core$compile_STAR_$fn__1279 / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m160←[22m←[0m)
   at misaki.util.sequence$some_with_default_value / ←[1minvoke←[22m (←[31msequence.clj←[0m:←[31m←[1m44←[22m←[0m)
   at misaki.core$compile_STAR_ / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m167←[22m←[0m)
   at misaki.core$call_all_compile / ←[1minvoke←[22m (←[31mcore.clj←[0m:←[31m←[1m185←[22m←[0m)
   at misaki.server$do_all_compile / ←[1minvoke←[22m (←[31mserver.clj←[0m:←[31m←[1m52←[22m←[0m)
   at misaki.server$_main / ←[1mdoInvoke←[22m (←[31mserver.clj←[0m:←[31m←[1m91←[22m←[0m)
   ←[31mFAIL in 0.395 sec←[0m
 * Finish Compiling
 * starting server:  ←[36mhttp://localhost:8080/←[0m
2013-04-26 11:40:45.996:INFO:oejs.Server:jetty-7.6.1.v20120215
2013-04-26 11:40:46.033:INFO:oejs.AbstractConnector:Started [email protected]:8080

Post tag

Enable to set post's tag in template options

Can't run sample

Clojure 1.4.0
Leiningen 1.7.1 on Java 1.6.0_31 Java HotSpot(TM) 64-Bit Server VM
All tests pass.

java.lang.RuntimeException: Unable to resolve symbol: css in this context, compiling:(NO_SOURCE_PATH:1) * compiling all templates: ... FAIL

    at clojure.lang.Compiler.analyze(Compiler.java:6281)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3497)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6457)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$VectorExpr.parse(Compiler.java:2954)
    at clojure.lang.Compiler.analyze(Compiler.java:6264)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3548)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6457)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:5919)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6455)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.C * compiling all tags: ... FAIL
ompiler.analyzeSeq(Compiler.java:6443)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5054)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3674)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6453)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5054)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3674)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6453)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.eval(Compiler.java:6508)
    at clojure.lang.Compiler.eval(Compiler.java:6501)
    at clojure.lang.Compiler.eval(Compiler.java:6477)
    at clojure.core$eval.invoke(core.clj:2797)
    at misaki.transform$transform$fn__56.invoke(transform.clj:54)
    at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:60)
    at clojure.core.protocols$fn__5890.invoke(protocols.clj:94)
    at clojure.core.protocols$fn__5854$G__5849__5863.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
    at clojure.core.protocols$fn__5873.invoke(protocols.clj:60)
    at clojure.core.protocols$fn__5828$G__5823__5841.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6030)
    at misaki.transform$transform.invoke(transform.clj:54)
    at misaki.template$load_template.invoke(template.clj:64)
    at misaki.template$load_template.invoke(template.clj:47)
    at misaki.template$load_template.invoke(template.clj:55)
    at misaki.template$load_template.invoke(template.clj:47)
    at misaki.template$load_template.invoke(template.clj:55)
    at misaki.core$generate_html.doInvoke(core.clj:92)
    at clojure.lang.RestFn.invoke(RestFn.java:410)
    at misaki.core$compile_template.invoke(core.clj:147)
    at misaki.core$compile_all_templates$fn__687.invoke(core.clj:169)
    at clojure.core$every_QMARK_.invoke(core.clj:2370)
    at misaki.core$compile_all_templates.invoke(core.clj:170)
    at misaki.server$do_all_compile.invoke(server.clj:27)
    at misaki.server$start_watcher.invoke(server.clj:60)
    at misaki.server$_main.doInvoke(server.clj:79)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.lang.Var.invoke(Var.java:415)
    at user$eval29.invoke(NO_SOURCE_FILE:1)
    at clojure.lang.Compiler.eval(Compiler.java:6511)
    at clojure.lang.Compiler.eval(Compiler.java:6501)
    at clojure.lang.Compiler.eval(Compiler.java:6477)
    at clojure.core$eval.invoke(core.clj:2797)
    at clojure.main$eval_opt.invoke(main.clj:297)
    at clojure.main$initialize.invoke(main.clj:316)
    at clojure.main$null_opt.invoke(main.clj:349)
    at clojure.main$main.doInvoke(main.clj:427)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve symbol: css in this context
    at clojure.lang.Util.runtimeException(Util.java:170)
    at clojure.lang.Compiler.resolveIn(Compiler.java:6766)
    at clojure.lang.Compiler.resolve(Compiler.java:6710)
    at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6671)
    at clojure.lang.Compiler.analyze(Compiler.java:6244)
    ... 73 more
java.lang.RuntimeException: Unable to resolve symbol: css in this context, compiling:(NO_SOURCE_PATH:1)
    at clojure.lang.Compiler.analyze(Compiler.java:6281)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3497)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6457)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$VectorExpr.parse(Compiler.java:2954)
    at clojure.lang.Compiler.analyze(Compiler.java:6264)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3548)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6457)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$LetExpr$Parser.parse(Compiler.java:5919)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6455)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6443)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5054)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3674)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6453)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.analyze(Compiler.java:6223)
    at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5618)
    at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5054)
    at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3674)
    at clojure.lang.Compiler.analyzeSeq(Compiler.java:6453)
    at clojure.lang.Compiler.analyze(Compiler.java:6262)
    at clojure.lang.Compiler.eval(Compiler.java:6508)
    at clojure.lang.Compiler.eval(Compiler.java:6501)
    at clojure.lang.Compiler.eval(Compiler.java:6477)
    at clojure.core$eval.invoke(core.clj:2797)
    at misaki.transform$transform$fn__56.invoke(transform.clj:54)
    at clojure.lang.ArrayChunk.reduce(ArrayChunk.java:60)
    at clojure.core.protocols$fn__5890.invoke(protocols.clj:94)
    at clojure.core.protocols$fn__5854$G__5849__5863.invoke(protocols.clj:19)
    at clojure.core.protocols$seq_reduce.invoke(protocols.clj:31)
    at clojure.core.protocols$fn__5873.invoke(protocols.clj:60)
    at clojure.core.protocols$fn__5828$G__5823__5841.invoke(protocols.clj:13)
    at clojure.core$reduce.invoke(core.clj:6030)
    at misaki.transform$transform.invoke(transform.clj:54)
    at misaki.template$load_template.invoke(template.clj:64)
    at misaki.template$load_template.invoke(template.clj:47)
    at misaki.template$load_template.invoke(template.clj:55)
    at misaki.template$load_template.invoke(template.clj:47)
    at misaki.core$generate_tag_html.invoke(core.clj:105)
    at misaki.core$compile_tag.invoke(core.clj:137)
    at misaki.core$compile_all_tags$fn__682.invoke(core.clj:155)
    at clojure.core$every_QMARK_.invoke(core.clj:2370)
    at misaki.core$compile_all_tags.invoke(core.clj:155)
    at misaki.server$do_all_compile.invoke(server.clj:29)
    at misaki.server$start_watcher.invoke(server.clj:60)
    at misaki.server$_main.doInvoke(server.clj:79)
    at clojure.lang.RestFn.invoke(RestFn.java:408)
    at clojure.lang.Var.invoke(Var.java:415)
    at user$eval29.invoke(NO_SOURCE_FILE:1)
    at clojure.lang.Compiler.eval(Compiler.java:6511)
    at clojure.lang.Compiler.eval(Compiler.java:6501)
    at clojure.lang.Compiler.eval(Compiler.java:6477)
    at clojure.core$eval.invoke(core.clj:2797)
    at clojure.main$eval_opt.invoke(main.clj:297)
    at clojure.main$initialize.invoke(main.clj:316)
    at clojure.main$null_opt.invoke(main.clj:349)
    at clojure.main$main.doInvoke(main.clj:427)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:419)
    at clojure.lang.AFn.applyToHelper(AFn.java:163)
    at clojure.lang.Var.applyTo(Var.java:532)
    at clojure.main.main(main.java:37)
Caused by: java.lang.RuntimeException: Unable to resolve symbol: css in this context
    at clojure.lang.Util.runtimeException(Util.java:170)
    at clojure.lang.Compiler.resolveIn(Compiler.java:6766)
    at clojure.lang.Compiler.resolve(Compiler.java:6710)
    at clojure.lang.Compiler.analyzeSymbol(Compiler.java:6671)
    at clojure.lang.Compiler.analyze(Compiler.java:6244)
    ... 71 more
2012-05-19 15:01:38.271:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
2012-05-19 15:01:38.283:INFO::jetty-6.1.25
2012-05-19 15:01:38.331:INFO::Started [email protected]:8080

java.io.FileNotFoundException

I keep getting this every time I try running the sample/blog. Not sure what's the problem. here..

****@ubuntu:~/misaki$ lein run sample/blog
Exception in thread "main" java.io.FileNotFoundException: sample/blog/_config.clj (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:138)
at clojure.java.io$fn__8638.invoke(io.clj:233)
at clojure.java.io$fn__8577$G__8542__8584.invoke(io.clj:73)
at clojure.java.io$fn__8650.invoke(io.clj:262)
at clojure.java.io$fn__8577$G__8542__8584.invoke(io.clj:73)
at clojure.java.io$fn__8612.invoke(io.clj:169)
at clojure.java.io$fn__8551$G__8546__8558.invoke(io.clj:73)
at clojure.java.io$reader.doInvoke(io.clj:106)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at clojure.lang.AFn.applyToHelper(AFn.java:161)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.core$apply.invoke(core.clj:619)
at clojure.core$slurp.doInvoke(core.clj:6278)
at clojure.lang.RestFn.invoke(RestFn.java:410)
at misaki.config$read_config.invoke(config.clj:65)
at misaki.config$make_basic_config_map.invoke(config.clj:95)
at misaki.server$_main.doInvoke(server.clj:89)
at clojure.lang.RestFn.invoke(RestFn.java:408)
at clojure.lang.Var.invoke(Var.java:415)
at user$eval37.invoke(NO_SOURCE_FILE:1)
at clojure.lang.Compiler.eval(Compiler.java:6619)
at clojure.lang.Compiler.eval(Compiler.java:6609)
at clojure.lang.Compiler.eval(Compiler.java:6582)
at clojure.core$eval.invoke(core.clj:2852)
at clojure.main$eval_opt.invoke(main.clj:308)
at clojure.main$initialize.invoke(main.clj:327)
at clojure.main$null_opt.invoke(main.clj:362)
at clojure.main$main.doInvoke(main.clj:440)
at clojure.lang.RestFn.invoke(RestFn.java:421)
at clojure.lang.Var.invoke(Var.java:419)
at clojure.lang.AFn.applyToHelper(AFn.java:163)
at clojure.lang.Var.applyTo(Var.java:532)
at clojure.main.main(main.java:37)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.