Permalink
Browse files

initial import

  • Loading branch information...
0 parents commit b715104d398683c890e80abbb544c76b59dc143c vol4ok committed Aug 18, 2012
Showing with 1,174 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +2 −0 .npmignore
  3. +21 −0 MIT-LICENSE
  4. +39 −0 README.md
  5. +375 −0 coffeekup.coffee
  6. +436 −0 coffeekup.js
  7. +25 −0 example/app.coffee
  8. +2 −0 example/server.js
  9. +1 −0 example/views/head.ck
  10. +2 −0 example/views/index.html
  11. +9 −0 example/views/layout.ck
  12. +1 −0 example/views/temp.ck
  13. +79 −0 muskup.coffee
  14. +148 −0 muskup.js
  15. +32 −0 package.json
@@ -0,0 +1,2 @@
+node_modules
+_*
@@ -0,0 +1,2 @@
+*.coffee
+example
@@ -0,0 +1,21 @@
+Copyright (c) 2012 Andrew Volkov <hello@vol4ok.net>
+Copyright (c) 2010 Maurice Machado <maurice@bitbending.com>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
+# MUSKUP
+
+Mustache and coffeekup template engine for express 3.x.
+
+Use twitter's [hogan.js](https://github.com/twitter/hogan.js) engine and [coffeekup](https://github.com/mauricemach/coffeekup).
+
+Supports
+ - partials
+ - layout
+ - caching
+ - coffeekup precompilation
+
+### Install
+
+`npm install muskup`
+
+### Usage
+
+Setup:
+```
+muskup = require('muskup')
+app.set('view engine', 'html')
+app.set('layout', 'layout.ck') # rendering by default
+app.set('partials', head: "head.ck") # partails using by default on all pages
+app.enable('view cache')
+app.engine 'html', muskup
+app.engine 'ck', muskup
+```
+
+Rendering template:
+```
+app.get '/', (req,res)->
+ res.locals = what: 'World'
+ res.render "index", partials: {temp: 'temp.ck'}
+```
+(will render `layout.ck` with `index.html`, `head.ck` and `temp.ck` partials)
+
+### License
+MIT License
Oops, something went wrong.

0 comments on commit b715104

Please sign in to comment.