Просмотр исходного кода

Added requirejs wrapper

tags/0.5.0-vsc
Tim Ruffles Jan Lehnardt <jan@apache.org> 15 лет назад
Родитель
Сommit
faa94ba1d4
3 измененных файлов: 11 добавлений и 0 удалений
  1. +2
    -0
      Rakefile
  2. +3
    -0
      mustache-requirejs/requirejs.mustache.js.tpl.post
  3. +6
    -0
      mustache-requirejs/requirejs.mustache.js.tpl.pre

+ 2
- 0
Rakefile Просмотреть файл

@@ -44,6 +44,8 @@ templated_build "CommonJS", :location => "lib", :extra => "package.json"
templated_build "jQuery"
templated_build "Dojo", :location => "dojox/string"
templated_build "YUI3", :location => "yui3/mustache"
templated_build "requirejs"


def version
File.read("mustache.js").match('version: "([^\"]+)",$')[1]


+ 3
- 0
mustache-requirejs/requirejs.mustache.js.tpl.post Просмотреть файл

@@ -0,0 +1,3 @@

return Mustache;
});

+ 6
- 0
mustache-requirejs/requirejs.mustache.js.tpl.pre Просмотреть файл

@@ -0,0 +1,6 @@
/*
Shameless port of a shameless port ^ 2
@defunkt => @janl => @aq => @voodootikigod => @timruffles
*/
define(function(){

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