Переглянути джерело

added YUI3 support

tags/0.2.3
Jakub Kuźma Jan Lehnardt <jan@apache.org> 16 роки тому
джерело
коміт
420dd04143
4 змінених файлів з 14 додано та 0 видалено
  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

+ 1
- 0
.gitignore Переглянути файл

@@ -2,3 +2,4 @@ runner.js
lib lib
jquery.mustache.js jquery.mustache.js
dojox dojox
yui3

+ 8
- 0
Rakefile Переглянути файл

@@ -37,6 +37,14 @@ task :dojo do
print "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); \n" print "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); \n"
end 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 task :clean do
`for file in \`cat .gitignore\`; do rm -rf $file; done` `for file in \`cat .gitignore\`; do rm -rf $file; done`


+ 4
- 0
mustache-yui3/mustache.js.tpl.post Переглянути файл

@@ -0,0 +1,4 @@

Y.mustache = Mustache.to_html;

}, "0");

+ 1
- 0
mustache-yui3/mustache.js.tpl.pre Переглянути файл

@@ -0,0 +1 @@
YUI.add("mustache", function(Y) {

Завантаження…
Відмінити
Зберегти