Permalink
Browse files

readme: document applyNext()

fix #12
  • Loading branch information...
1 parent a941c52 commit c2e759f021b00bbdad84de884c26da06eac188aa @indutny indutny committed Jan 29, 2013
Showing with 16 additions and 1 deletion.
  1. +16 −1 README.md
View
@@ -197,6 +197,21 @@ template(this.page === 'home') {
Super call gives you an ability to pass execution into transformations that
you're extending.
+### Apply next
+
+```javascript
+template(this.page === 'home' && this.action === 'login') {
+ // match here
+}
+
+template(this.page === 'home') {
+ applyNext();
+}
+```
+
+`applyNext()` call will reapply all templates, except one where it was called,
+to the inputs data.
+
## CLI interface
```bash
@@ -272,4 +287,4 @@ Some technical details (in Russian) can be found in [doc/tech.ru.md][4].
<!-- Yandex.Metrika counter -->
<img src="//mc.yandex.ru/watch/12831025" style="position:absolute; left:-9999px;" alt="" />
-<!-- /Yandex.Metrika counter -->
+<!-- /Yandex.Metrika counter -->

0 comments on commit c2e759f

Please sign in to comment.