One way to avoid rewriting everything that we've done so far (at least not completely) is to continue to use Trimpath and the current JSON feeds, just use them on the server-side using something like Node.js. (OK, not _something like_ Node; we should use Node. It is quickly becoming THE standard for server-side JS and it's wicked fast.)
The advantage of this patterns is that we can use the same DOM manipulation code on either the front or back end. - Eli On Apr 18, 2012, at 10:57 AM, Scot Hacker wrote: > Before we get into specifics about what would make a better front end, I > think we need a clearer picture of what it will mean for us to move to > server-side template rendering, since that move changes *everything* about > how the front end works. > > In my view/experience, it means that we take data objects handed to us by the > back-end and generate pre-rendered HTML. IOTW, it means we will no longer be > constructing the DOM client-side. This, in turn, means that the server is > not spitting out JSON* - we go straight from back-end logic to a > sophisticated template language that generates HTML (you've already seen my > wishlist for server-side template features and functionality). After initial > page load, any needed Ajax interactions will happen against callback > functions on the server. > > A change like this would mean a huge win in performance, and a huge win in > developer productivity. It would also mean a ton of work to rewrite all views > in the system. But most of the questions we're discussing here take a > completely different form if we're going to make this change. > > Can anyone say more about what it is intended with the move to server-side > template rendering? > > ./s > > * If we still need JSON to represent a public-facing API, we can do that by > allowing something like ?format=json on URLs, but JSON wouldn't be the > primary output of views. > > __________________________ > Scot Hacker > Senior Software Developer @ CalCentral > Educational Technology Services, UC Berkeley > > [email protected] > (510) 292-5586 > __________________________ > > > > > > > > _______________________________________________ > oae-dev mailing list > [email protected] > http://collab.sakaiproject.org/mailman/listinfo/oae-dev . . . . . . . . . . . . . . . . . . . Eli Cochran project manager, CalCentral project Educational Technology Services, UC Berkeley "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." - Antoine De Saint-Exupery _______________________________________________ oae-dev mailing list [email protected] http://collab.sakaiproject.org/mailman/listinfo/oae-dev
