Soarez/express-ejs-layouts — pull request #7 by NemoPersona (2013-09-12 13:29:42+00:00)
Title: Fixes: === > ==, ; where needed, remove extra refrence and some lint cos...

Cleanup changes:
- Don't trow errors but passes them on to next(), prevent server from crashing.
- Add jslint rules:
- Missing Semicolons: slows down script parsing, might result in undesired behaviour.
- Variables at top: this is what js does behind the scene, doing this manually makes the script parse.
- == and != are wrong, in both cases we want the === and !== behaviour, it works in the current context but using the correct statements prevents future changes from breaking the code.

More changes to optimize speed on master beach but they break some behaviour so I kept them out of this pull request.
- Remove default layout check: devs that don't set-up correctly deserve to die in a fire, rewarding them with cpu cycles is just ... wrong ?
- Remove the script parsing: there are better/faster way's to do this so not worth the cpu cycles ?
- Client side loading of extra scripts.
- Use of a content block for scripts.
- ...
- Allow partials to be rendered without the content blocks, useful for ajax requests. (I might expand on that as time goes on)