Skip to content

Commit 0c8d8d4

Browse files
committed
Add a bit to the README
1 parent 7c375d4 commit 0c8d8d4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ render comment
101101
render collection: post.comments
102102
```
103103

104+
Curly _components_ are surrounded by curly brackets, e.g. `{{hello}}`. They always map to a
105+
public method on the presenter class, in this case `#hello`. Methods ending in a question mark
106+
can be used for [conditional blocks](#conditional-blocks), e.g. `{{#admin?}} ... {{/admin?}}`.
107+
104108
### Identifiers
105109

106110
Curly components can specify an _identifier_ using the so-called dot notation: `{{x.y.z}}`.

0 commit comments

Comments
 (0)