Jakub Kuźma Jan Lehnardt <jan@apache.org> 16 лет назад
Родитель
Сommit
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
jquery.mustache.js
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"
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`


+ 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) {

Загрузка…
Отмена
Сохранить