Genius / perspectives

Render shared views on the client OR on the server
https://github.com/RapGenius/perspectives
MIT License
77 stars 5 forks source link

2-way bindings #1

Open matchdav opened 10 years ago

matchdav commented 10 years ago

I like this idea of shared templates. I really really do. I just started on a rails cleanup project, and I started working on a similar idea and then stumbled across your railsconf talk. It's exactly what I was looking for - with only one real exception: I really want simple support for declarative 2-way bindings, so I'm looking at integrating with Vue.js. Any suggestions or thoughts on how to achieve this tidily, i.e. how to construct a model adapter on the client side?

a-warner commented 10 years ago

@matchdav I thought a lot about integration with some kind of client-side framework, but haven't gotten around to implementing it yet. The ideal situation would be that, after the server renders out some set of objects, the client has some way of booting up and figuring out what objects exist on the page and setting them up. I'm open to suggestions!

matchdav commented 10 years ago

Cool. I'll fork this and give it some thought.

a-warner commented 10 years ago

@matchdav I look forward to seeing what you come up with!