Kaynağa Gözat

Merge branch 'master' into movember

tags/0.4.0
Ben Cherry 15 yıl önce
ebeveyn
işleme
ccd5c8ef40
6 değiştirilmiş dosya ile 27 ekleme ve 0 silme
  1. +2
    -0
      Rakefile
  2. +5
    -0
      examples/nesting.html
  3. +7
    -0
      examples/nesting.js
  4. +4
    -0
      examples/nesting.txt
  5. +3
    -0
      mustache-requirejs/requirejs.mustache.js.tpl.post
  6. +6
    -0
      mustache-requirejs/requirejs.mustache.js.tpl.pre

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

@@ -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]


+ 5
- 0
examples/nesting.html Dosyayı Görüntüle

@@ -0,0 +1,5 @@
{{#foo}}
{{#a}}
{{b}}
{{/a}}
{{/foo}}

+ 7
- 0
examples/nesting.js Dosyayı Görüntüle

@@ -0,0 +1,7 @@
var nesting = {
foo: [
{a: {b: 1}},
{a: {b: 2}},
{a: {b: 3}}
]
};

+ 4
- 0
examples/nesting.txt Dosyayı Görüntüle

@@ -0,0 +1,4 @@
1
2
3

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

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

return Mustache;
});

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

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

Yükleniyor…
İptal
Kaydet