About

This page is a test of various templates. None of the data you see is stored on this page. Live data from third party sites is being pumped in and applied to the templates, viewable in the source of the page. Usage: The basic process involves pasting the tmpl8 script into your documents head, pointing script tags to external data, and placing the template inside the script tag. The final step is coding a very simple callback to select the range of data to be applied to the template. The examples on this page could be easily modified to work on any page.

the data source (as of July08) has to be in JSON format, bound to or wrapped in a callback function. Most json web services allow the simple passing of name of a callback function in their url. You can also create your own json or javascript files to store data that might be used repeatedly, like the urls of a navigation bar, or use json outputs of databases to rapidly create report viewers.

what's missing
ajax
no way to update dyn data, calling tmpl8 is BIG no-no. can i make it safer?
	-perhaps a saftey built in to prevent doc.write after load.> switch to inerHTML after page is loaded > then re-eval?

-how to use templates to build page script- json templates.
- way to handle data formats other than json:
	-local only
	-csv, xml, m3u	


examples

hello world example the main idea to understand is that the template substitutes object's keyNames (**name**) for the object's value.
source
result



links as a list
source
result

links as a combo
source
result

links as a table
source
result
dump of link's information
title link

auto-tag example
source
result

del.icio.us example

(5 of my bookmarks)

source
result

FeaturePics example
source
result

weather example
source
result

tumblr example
source
result

RSS Feed example

(via yahoo pipes)

source
result

digg hot stories

advanced example: uses javascript in template

source
result
# title image date description

Calender example

(standalone external example; doesn't need tmpl8 to work)

source
result

Google Calendar example

(advanced: javascript in template)

source
result

twitter example

advanced example (JavaScript in template)

source
result

meta carta example
source
result

revver example
source
result

wakoopa example
source
result

rssme example
source
result

Yahoo Image search
source
result