decided in favor of dedicated COMPONENT() macro, updates to documentation

This commit is contained in:
udo
2026-04-19 11:34:03 +00:00
parent be514d63d6
commit 2b5586d7df
56 changed files with 926 additions and 401 deletions
+10 -1
View File
@@ -10,7 +10,16 @@ RENDER(Request& context)
<p>This is the content of Page 2. You can add more information here.</p>
<p>Sed at dolor leo. Morbi a tellus sed nisl dictum ultricies sit amet at purus. Nam mattis metus sed nunc egestas convallis.</p>
<br/>
<button onclick="$('#page2-section1').load('<?= starter_link("page2-section1", context) ?>')">Load new text</button>
<button id="page2-load-button" data-load-url="<?= starter_link("page2-section1", context) ?>" type="button">Load new text</button>
</div>
<script>
(function () {
const button = document.getElementById('page2-load-button');
if (!button) return;
button.addEventListener('click', function () {
$('#page2-section1').load(button.dataset.loadUrl);
});
}());
</script>
</>
}