Permalink
Browse files

making it more dojo'y, and live in the 'proper' namespace

  • Loading branch information...
1 parent e4ab54d commit faaeaf22afafbe11bb1d7f3dd84e856856c4d07e Peter Higgins committed with Jul 13, 2010
Showing with 5 additions and 6 deletions.
  1. +3 −4 mustache-dojo/mustache.js.tpl.post
  2. +2 −2 mustache-dojo/mustache.js.tpl.pre
@@ -1,5 +1,4 @@
- d.mustache = function(template, view, partials) {
- return Mustache.to_html(template, view, partials);
- };
-})(dojo);
+ dojox.mustache = dojo.hitch(Mustache, "to_html");
+
+})();
@@ -5,5 +5,5 @@ Shameless port of a shameless port
See http://github.com/defunkt/mustache for more info.
*/
-dojo.provide("dojox.string.mustache");
-;(function(d) {
+dojo.provide("dojox.mustache._base");
+(function(){

0 comments on commit faaeaf2

Please sign in to comment.