* zin: optimize core lib

This commit is contained in:
Hao Sun
2023-01-18 11:48:33 +08:00
parent d051be2ad0
commit 56027ccbf5
6 changed files with 44 additions and 46 deletions
+7 -5
View File
@@ -1,12 +1,14 @@
<?php
$page = page(
button('BUTTON'),
page
(
h('h1', 'hello'),
btn('哈哈')->primary(),
div(
button('BUTTON'),
btn('Primary')->primary()->rounded(),
div
(
h2('Headings2'),
h3('Headings3'),
p('lorem', h5::strong('bold'))
)
)->title('哈哈哈')->x();
)->title($title)->x();