Comments (1)
I've run into this head first today.
I'm trying to build an application where the router instantiates a 'State' model, which represents which page is active and so forth. There is a central interface view, which listens to events on the state model, and handles re-rendering component views. The router would only be responsible for changing the context object. (ie: set the current page).
There's a leak in the abstraction due to this. The environment that renders the initial page, versus renders subsequent page loads, is different. This means that on the server side, there is no way to set up a state/context object for the request.
I actually think the correct solution for this is to standardize on TJ's new pages.js client side router (heavily inspired) by express, that solves this kind of thing already. http://visionmedia.github.com/page.js/
will keep you updated if i figure something out.
from bones.
Related Issues (20)
- assets/bones/all.js fails to load HOT 5
- support node v6 in 1.3 branch HOT 2
- Graceful restarts
- Can not set config in Server plugin. HOT 1
- Create a 2.0 branch HOT 2
- Share models and resources between processes HOT 2
- Update to jQuery 1.7.1 HOT 1
- Add Express Middleware to all servers HOT 1
- Support a default location for --config option
- Mocha tests HOT 1
- Consider changing `bones` suffix HOT 5
- Express 3.x HOT 6
- clientside routing breaks if process.env.NODE_ENV = 'production'
- Entire model is needed prior to deletion
- Return model.attributes instead of resp in Route server middleware HOT 1
- [BUG] bones.token in cache gets overwritten if multiple request are made in IE
- require.extensions deprecated, switch to browserify HOT 1
- Listening address
- Update documentation HOT 3
- 60173365249
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bones.