Kaynağa Gözat

Merge branch 'merge'

* merge:
  ignore dojox
  Adding dojo support at dojox.string.mustache.
  Initial Dojo Library.
tags/0.2
Jan Lehnardt 16 yıl önce
ebeveyn
işleme
2659f2bcc4
4 değiştirilmiş dosya ile 26 ekleme ve 0 silme
  1. +1
    -0
      .gitignore
  2. +11
    -0
      Rakefile
  3. +5
    -0
      mustache-dojo/mustache.js.tpl.post
  4. +9
    -0
      mustache-dojo/mustache.js.tpl.pre

+ 1
- 0
.gitignore Dosyayı Görüntüle

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

+ 11
- 0
Rakefile Dosyayı Görüntüle

@@ -27,6 +27,17 @@ task :jquery do
print "Done, see ./#{target_jq}\n"
end


task :dojo do
print "Packaging for dojo\n"
source = "mustache-dojo"
target_js = "mustache.js"
`mkdir -p dojox; mkdir -p dojox/string`
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > dojox/string/#{target_js}`
print "Done, see ./dojox/string/#{target_js} Include using dojo.require('dojox.string.mustache.'); \n"
end


task :clean do
`for file in \`cat .gitignore\`; do rm -rf $file; done`
end

+ 5
- 0
mustache-dojo/mustache.js.tpl.post Dosyayı Görüntüle

@@ -0,0 +1,5 @@

d.mustache = function(template, view) {
return Mustache.to_html(template, view);
};
})(dojo);

+ 9
- 0
mustache-dojo/mustache.js.tpl.pre Dosyayı Görüntüle

@@ -0,0 +1,9 @@
/*
Shameless port of a shameless port
@defunkt => @janl => @aq => @voodootikigod
See http://github.com/defunkt/mustache for more info.
*/

dojo.provide("dojox.string.mustache");
;(function(d) {

Yükleniyor…
İptal
Kaydet