requirejs-config.json
require.config({
"baseUrl": "/static",
"paths": {
"api": "components/api",
"auxl": "components/auxl",
"bedrock": "components/bedrock",
| import sys | |
| def something(): | |
| print("Kenny lives") | |
| sys.exit() | |
| print("Can you see me") | |
| if __name__ == '__main__': | |
| # only code here | |
| def noop(): |
| <head> | |
| <!-- Viewport meta tag to prevent iPhone from scaling our page --> | |
| <meta name="viewport" content="width=device-width; initial-scale=1; maximum-scale=1.0; user-scalable=yes;"/> | |
| <style> | |
| body { | |
| margin: 0; | |
| background-color: linen; | |
| } | |
| .main { | |
| width: 100%; |
requirejs-config.json
require.config({
"baseUrl": "/static",
"paths": {
"api": "components/api",
"auxl": "components/auxl",
"bedrock": "components/bedrock",
| View.extend = _.wrap(View.extend, function(func) { | |
| var rest = Array.prototype.slice.call(arguments, 1), | |
| derivedClass = func.apply(this, rest); | |
| derivedClass.prototype.defaults = $.extend(true, {}, | |
| derivedClass.__super__.prototype.defaults, | |
| derivedClass.prototype.defaults); | |
| derivedClass.prototype.templates = $.extend(true, {}, | |
| derivedClass.__super__.prototype.templates, | |
| derivedClass.prototype.templates); |
This is my first take on providing functionality for modeling events as relationships within our views.
listenTo: function(subject, evt, observerCallback) {
var relationshipIndex = this.get('relationshipIndex') || [],
relationship = {
subject: subject,
evt: evt,
observerCallback: observerCallback
};
| daft: | |
| send_report: | |
| errors: | |
| pattern: The send to field must contain only a list of valid email addresses | |
| field_errors: | |
| name: | |
| min_length: Name must contain at least 1 non-whitespace character | |
| notify: | |
| min_length: At least one email address must be entered |