Parcourir la source

Merge pull request #456 from mmcev106/master

Added the keywords "imports", "nested" and "subtemplates" to the docs
tags/v2.1.0
Phillip Johnsen il y a 11 ans
Parent
révision
4904d58a86
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      README.md

+ 2
- 1
README.md Voir le fichier

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



Chargement…
Annuler
Enregistrer