Browse files

subview support

  • Loading branch information...
1 parent 200db22 commit b1a9f11f3c34eaeae056e7219a69511a7eebcec4 @pauliusuza pauliusuza committed Mar 26, 2012
Showing with 10 additions and 3 deletions.
  1. +1 −1 lib/cargobox.js
  2. +1 −1 package.json
  3. +8 −1 readme.md
View
2 lib/cargobox.js
@@ -46,7 +46,7 @@ var CargoBox = (function (){
var _server;
var _router;
var _routes;
- var _version = '0.1.0';
+ var _version = '0.1.1';
var _foo = function (foo){ return foo + foo; };
var _bar = function (n){ return n + 1; };
View
2 package.json
@@ -2,7 +2,7 @@
"name": "cargobox",
"description": "Web development framework for Node.JS",
"author": "Paulius Uza <pauliusuza@gmail.com>",
- "version": "0.1.0",
+ "version": "0.1.1",
"private": false,
"engines": {
"node": ">=0.6.x",
View
9 readme.md
@@ -1,5 +1,4 @@
<a name="start"></a>
-
# cargobox 0.1.0 #
Express-like web development framework for Node.JS with better OOP
@@ -54,6 +53,14 @@ Dependencies
console.log("Listening on " + port);
});
+### rendering a the page inside a layout (EJS example) ###
+
+ <%- body %>
+
+### rendering a sub-view (EJS example) ###
+
+ <%- render('footer') %>
+
### documentation [↑](#start) ###
[MIT License](https://github.com/inruntime/cargobox/blob/master/LICENSE)

0 comments on commit b1a9f11

Please sign in to comment.