-
Data on the Wire. Don't send HTML over the network. Send data and let the client decide how to render it.
-
One Language. Write both the client and the server parts of your interface in JavaScript.
-
Database Everywhere. Use the same transparent API to access your database from the client or the server.
-
Latency Compensation. On the client, use prefetching and model simulation to make it look like you have a zero-latency connection to the database.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Moof! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template name="helper_test"> | |
| {{#each test_objects}} | |
| <p>Object: {{helper-test this}}</p> | |
| {{/each}} | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| Backbone.syncWithoutUpload = Backbone.sync | |
| Backbone.syncWithUpload = function(method, model, options) { | |
| // Create iframe | |
| var iframe_id = 'file_upload_iframe_' + Date.now() | |
| , iframe = jQuery('<iframe id="' + iframe_id + '" name="' + iframe_id + '" ></iframe>').hide() | |
| var toForm = function(object, nested) { | |
| inputs = _.map(object, | |
| function(attr, key) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > mrt -p 5555 ~/work/m/tmp/js-yaml 1.9.3p0 | |
| Stand back while Meteorite does it's thing | |
| Installing Meteor | |
| branch: https://github.com/meteor/meteor.git#master | |
| Installing smart packages |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meteor": { | |
| "branch": "auth", | |
| "patches": [ | |
| "https://github.com/meteor/meteor/pull/334.patch" | |
| ] | |
| }, | |
| "packages": {} | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| var firstBlood = true; | |
| Template.foof.moof = function() { | |
| if (firstBlood) { | |
| firstBlood = false; | |
| doShitFirstTimeAround(); | |
| } else{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWSSum = { | |
| load: function(module) { | |
| var awssum = NodeModules.require('awssum'); | |
| return awssum.load(module); | |
| }, | |
| loadSyncInterface: function(module, className) { | |
| // Get a reference to the original interface | |
| var interface = AWSSum.load(module)[className]; |