文件名称:marty-express:使用Marty和react-router构建同构应用程序的快速中间件
文件大小:18KB
文件格式:ZIP
更新时间:2024-05-31 17:35:08
JavaScript
用 & 构建同构应用的中间件。 ##用法 var Marty = require ( 'marty' ) ; var Router = require ( 'react-router' ) ; var RouteHandler = Router . RouteHandler ; var routes = ( < Route xss=removed> < Route name = 'foo' path = '/foo/:id' xss=removed> < Route name = 'var' path = '/bar/:id' xss=removed> < / Route > ) ; class IsomorphicApp extends Marty . Application { const
【文件预览】:
marty-express-master
----.travis.yml(89B)
----.jshintignore(6B)
----index.js(3KB)
----.jscsrc(1KB)
----package.json(1KB)
----test()
--------routesWithMartySpec.js(1KB)
--------cookieStateSourceSpec.js(1KB)
--------routesWithoutMartySpec.js(2KB)
--------setup.js(151B)
--------locationStateSourceSpec.js(1KB)
--------lib()
--------fixtures()
--------httpStateSourceSpec.js(2KB)
----LICENSE(1KB)
----.npmignore(125B)
----serverCookies.js(683B)
----.gitignore(259B)
----Makefile(318B)
----README.md(2KB)
----.jshintrc(665B)
----build()
--------release.sh(123B)