jQuery Templating

Posted by & filed under Apps.

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd” > <html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en” > <head> <title>Template Tests</title> <script type=”text/javascript” src=”http://jqueryjs.googlecode.com/files/jquery-1.3.2.min.js” ></script> <script type=”text/javascript” src=”http://jquery-templates-plugin.googlecode.com/files/templates-1.1.1.min.js” ></script> <script type=”text/javascript” > $(document).ready( function() { $(‘#hello_world’).render( { ‘token0’: ‘hello_world’, ‘token1’: ‘Pete’, ‘token2’: ‘Repeat’ }); }); </script> <style type=”text/css”> .hello_world{ font-size:30px; } </style> </head> <body> <div id=”hello_world” class=”{token0}” > {token1}… Read more »