Using the Drupal Backbone Module
Ethan Winn - ethanw/@eethann/ethan@echoditto.com
a.k.a "A Deep Dive Into the Shallow Side of the Pool"
First: A Simple Drupal + Backbone Demo:
The Classic: Todo
By Stein Setvik (setvik) of Forum One
Do not forget the enemy:
@searls: https://speakerdeck.com/u/searls/p/confidencejs
Backbone Can Help
Let's break it down
- Requesting
- Rendering
- Responding
1. Requesting
Load a node!
Create a node & save it:
...or users, or comments, or flags, or...
Behind the Scenes: Saving
Behind the Scenes: Loading
Backbone.sync can point to anything:
Example: Archive.org Integration
Thanks EchoDitto for supporting this module development!
2. Rendering
...client-side!
With a twig.js template
(handlebars or _.js also work)