소스 검색

Added the keywords "imports", "nested" and "subtemplates" to the docs for Partials. It took me forever to find this feature because those were the keywords I was looking for. The term "partials" means something slightly different in some circles, so I kept misinterpretting their use when skimming the docs.

tags/v2.1.0
Mark McEver 11 년 전
부모
커밋
2d12c61bac
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. +2
    -1
      README.md

+ 2
- 1
README.md 파일 보기

@@ -382,7 +382,8 @@ Mustache requires only this:
{{> next_more}}
```

Why? Because the `next_more.mustache` file will inherit the `size` and `start` variables from the calling context. In this way you may want to think of partials as includes, or template expansion, even though it's not literally true.
Why? Because the `next_more.mustache` file will inherit the `size` and `start` variables from the calling context. In this way you may want to think of partials as includes, imports, template expansion, nested templates, or subtemplates, even though those aren't literally the case here.


For example, this template and partial:



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