- Tabs for indention.
- XHTML style self closing tags (ex.
<br />
)
- Use wrapper div as the standard container with a class of
input-wrap
.
// All of our icons | |
$icons: ( | |
(exclaim, "\21"), | |
(x, "\78"), | |
(play, "\25b7"), | |
(user, "\2603"), | |
(search, "\2604"), | |
(menu, "\2637"), | |
(loading, "\2668"), | |
(flag, "\2690"), |
var LinkedList = function() { | |
this._head = null; | |
this._tail = null; | |
this.length = 0; | |
}; | |
LinkedList.Node = function(data) { | |
return { | |
data : data, | |
next : null | |
}; |
SET @old_url = "http://oldside.com"; | |
SET @new_url = "http://newsite.com"; | |
SET @prefix = "wp_"; | |
SET @s1 = CONCAT("UPDATE ", @prefix, "options SET option_value = replace(option_value, '", @old_url, "', '", @new_url, "') WHERE option_name = 'home' OR option_name = 'siteurl';"); | |
PREPARE s1 FROM @s1; | |
EXECUTE s1; | |
SET @s2 = CONCAT("UPDATE ", @prefix, "posts SET guid = replace(guid, '", @old_url, "', '", @new_url, "');"); | |
PREPARE s2 FROM @s2; |
The transition that we are starting right now is going to be the most important set of decisions that White Lion makes for the next 3-5 years. To help explore all of these decisions I have tried to document some of the things that I think are important. The point of this is as a starting block for discussion, I do not know all the answers to these questions, but I tried to come up with the best arguments I could to support my opinion. Hopefully you all have some thoughts!!
One thing I think we need to discuss is the benefits and drawbacks of customizing our framework environment. What I mean by this are things like changing the directory structure, writing non-standard bundles instead of using community provided bundles and choosing not to use the pre-defined functionality in favor of our custom blend.
Pros
WL.ready(['plugin1.js','plugin2.js'], function(plugin1, plugin2){ | |
plugin1(); | |
}); | |
WL.ready(function(){ | |
// just maps to jQuery.ready() | |
}); |
Important Architecture Choices
wl.ready(function() { | |
// Backbone setup within scope | |
var Image = Backbone.Model.extend({ | |
defaults: { | |
'file_tn': 'undefined', | |
'file_lg': 'undefined' | |
}, | |
initialize: function() { | |
this.on('all', function(e) { wl.log('Image event: ' + this.get('file_tn') + ': ' + e); }); | |
} |
var Template = (function(){ | |
return function(t){ | |
if(!(this instanceof Template)){ | |
return new Template(t); | |
}else{ | |
var me = this; | |
me.template = t; | |
return function(data, container){ | |
var out = me.template; | |
for(var key in data){ |