En attendant de me décider, quelques liens
##Qu'est-ce que c'est ?
##1ers pas :
En attendant de me décider, quelques liens
##Qu'est-ce que c'est ?
##1ers pas :
##First of all ... Gh3
I've written Gh3.js, a client-side Javascript API wrapper for GitHub API V3. So, with Gh3, you can play with gists and github repositories. I need examples to demonstrate the possibilities of gh3. Here is a first draft for creating a website from the content of gists : "minibooks"
##Dependencies
#Chop ?
I <3 Backbone object model https://gist.github.com/2287018, but sometimes i need it without Backbone. Then i've created Chop, an object model Backbone-flavored. See it here https://github.com/k33g/chop;
I've cribbed the Backbone object model ;)
#How to ?
##Class , constructor & static members
Some times to organize my code in a backbone single page application , i miss controllers (like Playframework). So, i dit that (and i'm not ashamed ;) ...) :
Backbone.Controller = function() {};
Backbone.Controller.extend = Backbone.View.extend;
So, i can write this, now :
var myControllerOfSomething = Backbone.Controller.extend({},{
doSomeThing : function () {
#Coffeescript mieux que Java ?
| var MiniBooksStore = { | |
| categories : ["general", "javascript", "backbone", "coffeescript", "PlayFramework", "java", "SublimeText"], | |
| titles : [ | |
| { | |
| name : "Mini-Books-Store", | |
| id : 3266964, | |
| author : "k33g", | |
| description : "Mini Books Store presentation", | |
| published : "2012 August", | |
| categories : ["general"] |
#Enyo Object Model
| // Just do this : (and include backbone.js) | |
| var Kind = function() { | |
| this.initialize && this.initialize.apply(this, arguments); | |
| }; | |
| Kind.extend = Backbone.Model.extend | |
| //Simpler | |
| var Thing = function() {}; | |
| Thing.extend = Backbone.Model.extend |