Overview
Syllabus
EMERGING TECHNOLOGIES FOR THE ENTERPRISE CONFERENCE
Problem #1: Multiple content boxes
Context-switching
Computers should do this MON
Two pages, one system
The Solution
Auto diffs via Ajax
Support multiple content boxes
Support non-visible changes (JS!)
Respect URLs and permalinks
Bail if needed
Favor correctness, win devs' trust
Amaze
Why pass HTML instead of structured data?
Example
Find all on-site links
2. Set onclick
3. Django middleware
Overview
Two bits of MAGIC
Django template inheritance base.html
Basic diff using template inheritance
Template variables
Then it starts to get tricky...
How does the framework know this is a title?
Partial titles
Snippets in HTML tags
Hooking into the HTML: Option 2
Evil HTML snippets
Insertion types
Nested template logic
Template logic in crafty places
Removal of markup
Putting it all together
Security, part 1
Deferred loading
Template scanner
Taught by
ChariotSolutions