Giter Club home page Giter Club logo

backbone-rivets-example's Introduction

Backbone.js + Rivets.js = Crazy Delicious

In this repository you'll find a full tutorial & pratical example of how you can use Rivets.js (created by Michael Richards) to incorperate powerful data binding patterns into Backbone.js with minimal effort.

To get started...

1) View the demo.

2) Read the tutorial.

3) Browse the source.

I hope you find these examples helpful. Please let me know if you have any feedback/suggestions for improving the tutorial or example code. I can be found here on Github or @wmdmark on Twitter.

To build the demo...

The example code is built via Brunch.

1) Install brunch:

npm install -g brunch

2) Install SASS:

gem install sass

3) Run the demo

npm install
brunch w -s

You should now be able to view the build in your broweser at: http://localhost:3333

Read more about the build commands in the Brunch Docs

backbone-rivets-example's People

Contributors

wmdmark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

backbone-rivets-example's Issues

href template

<li rv-each-contact="root:contacts" rv-id="contact.cid">
...
    <h3>Tags</h3>
    <a rv-href="contact.cid" href="#/tags/edit/{contact.cid}">add tag</a>

how can i push args to link with backbone-rivets ?

Deep models

Hi,

Great demo and article for those who want to start working with rivets and backbone!

I think that it is worth mentioning dealing with deep backbone structures (nested models). For some apps it is a bad practice, but in some cases when you have document-based DBs you have to use those.

For dealing with that I have a nice adapter along with demo.

I hope it help your readers ;)

Backbone adapter

Thanks for this adapter - it's 2015 and with Backbone, we are supposed to use this.listenTo(model...) instead of using this.model.on('age'...) etc.

Is there a way to change the adapter to fit the this.listenTo paradigm? It might not be needed however....------> because for views it is much more important to use this.listenTo, whereas for models, it is probably more OK to use this.on()

what do you think? thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.