0.1.2 • Published 11 years ago

kokaku v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
11 years ago

#+BEGIN_SRC


/\ \ /\ \ /\ \ \ \ \/'\ _\ \ \/'\ \ \ \/'\ /_\ __ \ \ , < / `\ \ , < /'\ \ \ , < /\ \/\ \ \/\ \ /',__\ \ \ \\\ /\ \L\ \ \ \\ /\ \L\.\_\ \ \\\ \ _\ __ \ \ \/__, `\ \ _\ _\ __/\ _\ _\ __/._\ _\ _\ __/__\ \ \/_/ \//\//\// \//\//\//\// \//\//\//\/_/\ _\ \/_/ \ __/ \/___/ #+END_SRC

** Why kokaku

  • Micro, only 100+ row of code
  • easy to use, just config View Model and Route, then it works.
  • Data cache with localStorage, really fast the second time you load the same page.

** Install #+BEGIN_SRC sh bower install kokaku #+END_SRC

** How to Use it I think [https://github.com/blogist/blogist/blob/master/src/blogist.js] is a good example :metal:

Model #+BEGIN_SRC javascript var bloglistModel = new Model("bloglist","get@https://api.github.com/users/jcouyang/gists"); #+END_SRC View #+BEGIN_SRC javascript var BlogDetailView = View.extend({ el:$(".container .article"), template:"src/templates/article.html" }); #+END_SRC *** Router #+BEGIN_SRC javascript router.get("/gist/:gistid/?",function(params,data){ blogDetailOf(params.gistid); }); #+END_SRC

Contibution #+BEGIN_SRC sh npm install grunt mocha #+END_SRC Issues [https://github.com/jcouyang/kokaku/issues]