소스 검색

Initial Dojo Library.

tags/0.2
Chris Williams 16 년 전
부모
커밋
9deebb7e7a
3개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. +10
    -0
      Rakefile
  2. +5
    -0
      mustache-dojo/dojo.mustache.js.tpl.post
  3. +9
    -0
      mustache-dojo/dojo.mustache.js.tpl.pre

+ 10
- 0
Rakefile 파일 보기

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


task :dojo do
print "Packaging for dojo\n"
source = "mustache-dojo"
target_js = "dojo.mustache.js"
`cat #{source}/#{target_js}.tpl.pre mustache.js #{source}/#{target_js}.tpl.post > #{target_js}`
print "Done, see ./#{target_js}\n"
end


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

+ 5
- 0
mustache-dojo/dojo.mustache.js.tpl.post 파일 보기

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

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

+ 9
- 0
mustache-dojo/dojo.mustache.js.tpl.pre 파일 보기

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

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

불러오는 중...
취소
저장