This document discusses building single page applications (SPAs). It covers the evolution of SPAs from technologies like DHTML and Flash to modern JavaScript frameworks. It discusses approaches to building SPAs in Rails like using client-side MVC frameworks with the asset pipeline or Rails and build tools. The document outlines some best practices for SPAs like server-side rendering, reusable components, and avoiding blocking the main thread. It also covers some challenges of SPAs like complexity, race conditions, memory leaks, and dealing with latency.
38. 1 define("hgn!templates/recipe" ,
["hogan"],function(hogan){ return function
render(c,p,i) {
2 var t=this;t.b(i=i||"");t.b("<div>
");if(t.s(t.f("is_nettos_talk",c,p,1),c,p,
0,25,71,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("
yay, Netto is talking about Single Page apps
");});c.pop();}t.b(" ");if(!
t.s(t.f("is_nettos_talk",c,p,1),c,p,1,0,0,"")){t.b("
Can't wait to see Netto's talk! I should follow him
on twitter: @nettofarah ");};t.b("
");if(t.s(t.d("event.is_tropical_ruby",c,p,1),c,p,
0,235,240,"{{ }}")){t.rs(c,p,function(c,p,t){t.b("
yay ");});c.pop();}t.b("
");if(t.s(t.f("participants",c,p,1),c,p,
0,285,315,"{{ }}")){t.rs(c,p,function(c,p,t)
{t.b(" ... SOME COOL MUSTACHE STUFF ");});c.pop();}
t.b(" </div>");return t.fl(); } }