本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
jan
/
mustache.js
镜像来自
https://github.com/janl/mustache.js
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
46
Wiki
活動
瀏覽代碼
Only access properties of objects on Context.lookup
tags/v1.0.0
Chris Buckley
12 年之前
父節點
96b04c87bd
當前提交
d9aa703014
共有
4 個檔案被更改
,包括
6 行新增
和
1 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
mustache.js
+3
-0
test/_files/bug_length_property.js
+1
-0
test/_files/bug_length_property.mustache
+1
-0
test/_files/bug_length_property.txt
+ 1
- 1
mustache.js
查看文件
@@ -368,7 +368,7 @@
while (value != null && index < names.length)
value = value[names[index++]];
} else {
} else
if (typeof context.view == 'object')
{
value = context.view[name];
}
+ 3
- 0
test/_files/bug_length_property.js
查看文件
@@ -0,0 +1,3 @@
({
length: 'hello'
})
+ 1
- 0
test/_files/bug_length_property.mustache
查看文件
@@ -0,0 +1 @@
{{#length}}The length variable is: {{length}}{{/length}}
+ 1
- 0
test/_files/bug_length_property.txt
查看文件
@@ -0,0 +1 @@
The length variable is: hello
Write
Preview
Loading…
取消
儲存