jQuery 1.11 and 2.1 Beta 1

jQuery 1.11 and 2.1 Beta 1[1] have been released. The biggest news is jQuery now supports AMD, and is built with it. Internal dependencies are also managed with Bower.

By using AMD and Bower the jQuery developers are showing that they’re receptive to the needs of modern client-side developers.

dna.js

dna.js[2] (GitHub: dnajs / dna.js[3], License: GPLv3/MIT, jQuery: dna[4]) by Dem Pilafian is a template library that uses valid HTML rather than a new syntax or inline JavaScript templates. It clones an element as many times as you need, and interpolates values.

A template looks like this:

<div>
  <h2>Featured Books</h2>
  <div id="book" class="dna-template">
    <div>Title:  <span>~~title~~</span></div>
    <div>Author: <span>~~author~~</span></div>
  </div>
</div>

And you can clone it with dna.clone('book', { title: 'The DOM', author: 'Jan' }).

References

  1. ^ jQuery 1.11 and 2.1 Beta 1 (blog.jquery.com)
  2. ^ dna.js (dnajs.org)
  3. ^ dnajs / dna.js (github.com)
  4. ^ dna (plugins.jquery.com)

Read more

© 2024 Extly, CB - All rights reserved.