mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
feat: introduce template engine (#2899)
This commit is contained in:
17
templates/base.html.php
Normal file
17
templates/base.html.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="RSS-Bridge" />
|
||||
<title><?= e($title ?? 'RSS-Bridge') ?></title>
|
||||
<link href="static/style.css" rel="stylesheet">
|
||||
<link rel="icon" type="image/png" href="static/favicon.png">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="logo"></div>
|
||||
</header>
|
||||
|
||||
<?= raw($page) ?>
|
||||
</html>
|
9
templates/error.html.php
Normal file
9
templates/error.html.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<section>
|
||||
<h2>Something went wrong</h2>
|
||||
<br>
|
||||
|
||||
<p>
|
||||
<?= e($message) ?>
|
||||
</p>
|
||||
|
||||
</section>
|
Reference in New Issue
Block a user