trying to port web app starter from PHP

This commit is contained in:
udo
2026-04-19 09:38:23 +00:00
parent 46d98a092f
commit be514d63d6
546 changed files with 76910 additions and 2807 deletions
@@ -0,0 +1,19 @@
<?php return [
'render' => function($prop) {
$id = trim((string)($prop['id'] ?? ''));
$class = trim((string)($prop['class'] ?? ''));
$attrs = trim((string)($prop['attrs'] ?? ''));
$header = (string)($prop['header_html'] ?? '');
$body = (string)($prop['body_html'] ?? '');
ob_start();
?>
<section<?= $id !== '' ? ' id="' . asafe($id) . '"' : '' ?> class="ws-section<?= $class !== '' ? ' ' . asafe($class) : '' ?>"<?= $attrs !== '' ? ' ' . $attrs : '' ?>>
<?= $header ?>
<?= $body ?>
</section>
<?php
return ob_get_clean();
},
'about' => 'Stacked workspace section wrapper for grouped content blocks',
];