This file contains 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
!!! 5 | |
html | |
head | |
title= title | |
// | |
[if IE8] <!--> <html class="no-js" lang="en"> <!--<![endif] | |
body!= body |
This file contains 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
!!! 5 | |
//if lt IE 7 html(class="no-js ie6 oldie", lang="en") | |
//if IE 7 html(class="no-js ie7 oldie", lang="en") | |
//if IE 8 html(class="no-js ie8 oldie", lang="en") | |
//if gt IE8 <!--> <html class="no-js" lang="en"> <!--<![endif] | |
head | |
title= title |
This file contains 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
!!! 5 | |
//if lt IE 7 | |
html(class="no-js ie6 oldie", lang="en") | |
//if IE 7 | |
html(class="no-js ie7 oldie", lang="en") | |
//if IE 8 | |
html(class="no-js ie8 oldie", lang="en") | |
// [if gt IE 8] <! | |
html(class="no-js", lang="en") | |
// <![endif] |
This file contains 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
var PageView = Backbone.View.extend({ | |
el: '#content', | |
template: _.template($('#page-template').html()), | |
events: { | |
'click #back' : 'back', | |
'click #forward' : 'forward', | |
'click #side' : 'side' | |
}, |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Page Title</title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://documentcloud.github.com/underscore/underscore-min.js" type="text/javascript" charset="utf-8"></script> | |
<script src="http://documentcloud.github.com/backbone/backbone-min.js" type="text/javascript" charset="utf-8"></script> | |
</head> |
This file contains 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
({ | |
appDir: "../js", | |
baseUrl: "./", | |
dir: "../js-deploy", | |
//Comment out the optimize line if you want | |
//the code minified by UglifyJS | |
optimize: "none", | |
paths: { | |
'app' : 'app', |
This file contains 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
js | |
model | |
user.js | |
test | |
test.js | |
Error: Calling node's require("model/user") failed with error: Error: Cannot find module 'model/user' |
This file contains 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
checkExisting: function() { | |
var existing = $(this.id)[0]; | |
if (existing) this.setElement(existing); | |
}} |
This file contains 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
I have a schema that looks like this: | |
band: { | |
albums: [ | |
{ tweets: [ | |
{ tweet }, { tweet } | |
] } | |
] | |
} | |
I want to add the band (doc) if it doesn't exist. |
This file contains 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
/*global config:true, task:true*/ | |
config.init({ | |
options: { | |
templates: { | |
namespace: "tmpl", | |
dir: 'templates' | |
} | |
}, | |
pkg: '<json:package.json>', | |
test: { |
OlderNewer