WinnipegWideWeb Demo Blog

Small patterns that keep templates clean: includes, partials, and predictable classes.

Default post Published

HTML that stays maintainable

Small patterns that keep templates clean: includes, partials, and predictable classes.

If it repeats more than twice, turn it into a partial. If it has logic, move that logic into PHP and keep your markup simple.

A tiny partial

<!-- partials/card.php --><article class='post-card'><img src='<?= h($post['cover_url']) ?>' alt='Post cover' /><div class='content'>...</div></article>

You might also like

Suggested based on the post you opened.

1 min read · Published

WinnipegWideWeb: platform notes

A running log of the kind of building blocks that make a new platform feel fast and sturdy.

1 min read · Published

Building a blog engine in plain PHP

A clean demo blog: PDO, prepared statements, and a block editor that feels familiar without being heavy.

1 min read · Published

PHP utilities that keep code sane

Escaping helpers, slugify, CSRF tokens, and a renderer that is strict enough to be safe.