From 2d12c61bac698303856af8b3e023fb8bba7b37be Mon Sep 17 00:00:00 2001 From: Mark McEver Date: Wed, 27 May 2015 10:35:19 -0500 Subject: [PATCH] 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. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 48a5bf1..0db1ad0 100644 --- a/README.md +++ b/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: