Announcement
iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008
Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.
We can't do it for you. Login and vote now.
By nerdyhearn
via nerdyhearn.com
Submitted: Mar 28 2008 / 13:29
A templating system can be very useful in javascript. Using a templating system can mean that your designers can setup basic layout in HTML only and the developer of the javascript can implement more advanced javascript as necessary, as well as doing value-substitution. This basic templating system can substitute variables and have a template stored in either a textarea (recommended), input, span or div. It could easily be expanded to create your own internal scripting system for iterating variables, implementing basic if-then-else logic, and many more concepts.
SaveShareSend
Tags: how-to, javascript, methodology, web design
Add your comment