Permalink
Browse files

added YUI3 support

1 parent 4694868 commit 420dd041437d930b4d4b1373cf0b1b550b3f9803 @qoobaa qoobaa committed with Mar 14, 2010
Showing with 14 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +8 −0 Rakefile
  3. +4 −0 mustache-yui3/mustache.js.tpl.post
  4. +1 −0 mustache-yui3/mustache.js.tpl.pre
View
@@ -2,3 +2,4 @@ runner.js
lib
jquery.mustache.js
dojox
+yui3
View
@@ -37,6 +37,14 @@ task :dojo do
print "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); \n"
end
+task :yui3 do
+ print "Packaging for YUI3\n"
+ source = "mustache-yui3"
+ target_js = "mustache.js"
+ `mkdir -p yui3; mkdir -p yui3/mustache`
+ `cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > yui3/mustache/#{target_js}`
+ print "Done, see ./yui3/mustache/#{target_js}\n"
+end
task :clean do
`for file in \`cat .gitignore\`; do rm -rf $file; done`
@@ -0,0 +1,4 @@
+
+ Y.mustache = Mustache.to_html;
+
+}, "0");
@@ -0,0 +1 @@
+YUI.add("mustache", function(Y) {

0 comments on commit 420dd04

Please sign in to comment.