EMERGING TECHNOLOGIES FOR THE ENTERPRISE CONFERENCE
2
Problem #1: Multiple content boxes
3
Context-switching
4
Computers should do this MON
5
Two pages, one system
6
The Solution
7
Auto diffs via Ajax
8
Support multiple content boxes
9
Support non-visible changes (JS!)
10
Respect URLs and permalinks
11
Bail if needed
12
Favor correctness, win devs' trust
13
Amaze
14
Why pass HTML instead of structured data?
15
Example
16
Find all on-site links
17
2. Set onclick
18
3. Django middleware
19
Overview
20
Two bits of MAGIC
21
Django template inheritance base.html
22
Basic diff using template inheritance
23
Template variables
24
Then it starts to get tricky...
25
How does the framework know this is a title?
26
Partial titles
27
Snippets in HTML tags
28
Hooking into the HTML: Option 2
29
Evil HTML snippets
30
Insertion types
31
Nested template logic
32
Template logic in crafty places
33
Removal of markup
34
Putting it all together
35
Security, part 1
36
Deferred loading
37
Template scanner
Description:
Explore the future of server-side web frameworks in this thought-provoking conference talk by Django co-creator Adrian Holovaty. Delve into the potential obsolescence of current frameworks and question the necessity of generating HTML from scratch for each page request. Discover how to automate new best practices like Pjax and learn about innovative solutions for multiple content boxes, context-switching, and auto-diffs via Ajax. Examine the benefits of passing HTML instead of structured data, and gain insights into implementing these concepts using Django middleware and template inheritance. Address challenges such as partial titles, nested template logic, and security concerns while considering the implications for developers across various frameworks, including Ruby on Rails.
Pjax and the Next Generation of Server-Side Web Frameworks - ETE 2012