You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+28-43Lines changed: 28 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,57 +16,42 @@ This will install Leaf UI into your application. You don't have to worry about b
16
16
17
17
After this, you can use all of Leaf UI's methods and components.
18
18
19
-
View the [mini documentation here](//leafphp.netlify.app/#/2.1/views/ui/)
19
+
View the [mini documentation here](//leafphp.netlify.app/#//ui/)
20
20
21
-
## Working With Templates
21
+
## Working with Leaf UI
22
22
23
-
Templates provide a quick way to scaffold a Leaf UI without sweating the tiny details. To get started, simply swap out the main the `Leaf\UI` package for `Leaf\UI\Template`.
23
+
What does leaf UI offer you?
24
24
25
-
```php
26
-
use Leaf\UI\Template as UI;
27
-
28
-
UI::element(...);
29
-
```
25
+
Instead of this:
30
26
31
27
```php
32
-
$ui = new Leaf\UI\Template;
33
-
34
-
$ui::element(...);
28
+
<?php
29
+
// all your logic
30
+
31
+
echo "<sectionclass=\"box\">
32
+
<h2class=\"box-title\">Item name</h2>
33
+
<pclass=\"box-body\">
34
+
Your body here
35
+
</p>
36
+
</section>";
37
+
?>
35
38
```
36
39
37
-
### Template Methods
38
-
39
-
#### _template
40
-
41
-
This method let's you create a plain HTML structure consisting which looks somewhat like this when rendered:
In the end, leaf ui allows you to write your whole app peacefully without having to deal with weird strings, interpollation and all that. Just write PHP!
54
+
55
+
*This file is still being updated!*
71
56
72
-
Leaf UI with wynter css allows you to use wynter css components instead of raw HTML components. Wynter CSS is a CSS Framework (work-in-progress) based on [spectre CSS](https://picturepan2.github.io/spectre/). So, with Leaf UI - Wynter Components, you can build your amazing frontends without any additional CSS or Javascript.
57
+
Built with ❤ by [**Mychi Darko**](https://mychi.netlify.app)
0 commit comments