Sha256: a106355558a4a68836738e12baae1acb78553bd2cf24b483feedb1e6be2cf7fa
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
var poirot = (function ($) { var poirot = { partials: {} } $(document).ready(function () { $('script[type="text/mustache"]').each(function () { var template = $(this).text() var methodName = this.id.replace(/-([a-z])/g, function (str) { return str.replace("-", "").toUpperCase() }).replace("Template", "") poirot.partials[methodName] = template poirot[methodName] = function (presenter) { return $(Mustache.to_html(template, presenter, poirot.partials)) } }) }) return poirot })(jQuery)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
poirot-0.0.3 | vendor/assets/javascripts/poirot/poirot.js |