Ivor O’Connor

June 9, 2009

Standardized Templates With JSON

Filed under: GEARS — Tags: , , — ioconnor @ 4:32 pm

My invoices are web based PHP creations. It would be better to switch to JavaScript. JavaScript with google.gears pulling sqlite data. The questionable part is massaging to JSON data and then right back to JavaScript variables. This excessive redundant busy work for the sake of standardized reusable modules may be a good decision over time and for future projects. The final templates for invoices and what not will hopefully be easier too.

With this goal in mind I came across an interesting Dr. Dobbs article here http://www.ddj.com/windows/217701311. John Resig and Rich Strahl have put together a useful library for funneling JSON data into a template. With these two as the authors there is very little doubt the module will become a standard. I’m going to use the article and a google search onĀ  ‘“Rick Strahl” “John Resig” parseTemplate json‘ as a starting point…

Create a free website or blog at WordPress.com.