Skip to content

Commit eb1fabd

Browse files
committed
readme
1 parent 98119cf commit eb1fabd

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,15 @@ Thanks to Hotwire, it's now possible to build sophisticated server-rendered user
1313

1414
With Theo, you can render a partial using HTML-like syntax:
1515
```html
16-
<_button size="large" label%="label" />
16+
<_button size="large" label%="label" primary% />
1717
```
1818

19+
> [!IMPORTANT]
20+
> For rendering partials, you can also use PascalCase, for example:
21+
> ```html
22+
> <Button size="large" label%="label" primary% />
23+
> ```
24+
1925
2026
## Getting started
2127
@@ -56,7 +62,7 @@ is equivalent to:
5662
```erb
5763
<a href="<%= root_path %>">Home</a>
5864
```
59-
> [!TIP]
65+
> [!TIP]
6066
> Computed attributes work with partials as well as standard HTML tags.
6167
6268
#### Short form
@@ -101,6 +107,7 @@ is equivalent to:
101107
<%= render 'special_button', size: 'large' %>
102108
```
103109

110+
> [!TIP]
104111
> Alternatively, you can also use PascalCase, for example:
105112
> ```html
106113
> <SpecialButton size="large" />

0 commit comments

Comments
 (0)