File: extlib/mustache/3.0.1/wrappers/jquery/mustache.js.post

Recommend this page to a friend!
  Classes of Emmanuel Podvin   Blapy   extlib/mustache/3.0.1/wrappers/jquery/mustache.js.post   Download  
File: extlib/mustache/3.0.1/wrappers/jquery/mustache.js.post
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Blapy
jQuery plugin to load linked pages using AJAX
Author: By
Last change: Update of extlib/mustache/3.0.1/wrappers/jquery/mustache.js.post
Date: 2 years ago
Size: 359 bytes
 

Contents

Class file image Download
$.mustache = function (template, view, partials) { return Mustache.render(template, view, partials); }; $.fn.mustache = function (view, partials) { return $(this).map(function (i, elm) { var template = $.trim($(elm).html()); var output = $.mustache(template, view, partials); return $(output).get(); }); }; })(jQuery);