express middleware for building isomorphic applications with Marty & react-router.
##Usage
var Marty = require('marty');
var Router = require('react-router');
var RouteHandler = Router.RouteHandler;
var routes = (
<Route handler={RouteHandler}>
<Route name='foo' path='/foo/:id' handler={Foo} />
<Route name='var' path='/bar/:id' handler={Bar} />
</Route>
);
var app = express();
app.use(require('marty-express')({
routes: routes, // required
view: 'foo', // name of view to render, default: index
local: 'bar', // name of local variable in view, default: body
marty: ..., // instance of Marty to use, default: require('marty')
}));
##Quick start
make bootstrap #Install all dependencies
make test #Run tests
##Git Commit Messages
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- Consider starting the commit message with an applicable emoji:
- π
:lipstick:
when improving the format/structure of the code - π
:racehorse:
when improving performance - π±
:non-potable_water:
when plugging memory leaks - π
:memo:
when writing docs - π§
:penguin:
when fixing something on Linux - π
:apple:
when fixing something on Mac OS - π
:checkered_flag:
when fixing something on Windows - π
:bug:
when fixing a bug - π₯
:fire:
when removing code or files - π
:green_heart:
when fixing the CI build - β
:white_check_mark:
when adding tests - π
:lock:
when dealing with security - β¬οΈ
:arrow_up:
when upgrading dependencies - β¬οΈ
:arrow_down:
when downgrading dependencies
- π
(From atom)
##Maintainers
##License