Build a theme for your website

Installs: 32

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/spencer-mortensen/theme

0.0.13 2025-01-05 19:37 UTC

This package is auto-updated.

Last update: 2025-10-05 21:31:31 UTC


README

This project is available as a Composer package:
spencer-mortensen/theme

Usage:

$theme = new Theme($sitePath, $siteUrl);
$theme->set('canonicalUrl', $canonicalUrl);
$theme->apply('theme/site');
$theme->apply('theme/page');
$html = $theme->get('html');

echo $html;


=== theme/site/.html ===
<html>
<head>
{$css}{$js}<title>{$title}</title>
</head>
<body></body>
</html>

=== theme/site/.title ===
Masterlined

=== theme/site/.js ===
theme/site/script.js.list

=== theme/site/script.js.list ===
theme/site/js/
theme/site/script.js