Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

An Introduction to jQuery Templating

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
17,095
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 28, 2010

JavaScript Templating is a neat idea: it allows you to easily convert JSON to HTML without the work of parsing the it. At Microsoft's MIX10 conference, they announced that they would be starting to work with the jQuery team; one of their efforts was to provide a templating plugin. In this quick tip, I'll show you how to use it!

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (8)

Sign In or Sign Up now to post a comment!
  • I know Devbhagat probably got past his issue, but for everyone else's edification:

    There is no longer a "render"; you use "tmpl" instead.

  • Hi,

    Just tried to do it at my own today...

    It gives me an error. render is not a function

    $("#listTemplate").render is not a function

     $("#listTemplate").render(data­).appendTo("ul");

  • This seems way more complicated than .append()

  • @crawlinoc 1) offload the templating logic from server developer to client developer 2) said client developer can make MVC style frontends easier without mixing display application state logic.

  • @crawlinoc - One thing I could think of is to have the organizing of the data into proper html tags from the server side to the client side .

  • great stuff. what is the real life use?

  • Really potent, thanks for this video.

    Regards from Spain.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more