MariaCore/example/templates/hello.html.twig

19 lines
507 B
Twig

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Hallo {{ name }}</title>
<style>
body { font-family: sans-serif; background: #f8f8f8; margin: 2em; }
h1 { color: #2c3e50; }
.info { color: #888; margin-top: 2em; }
</style>
</head>
<body>
<h1>Hallo, {{ name|e('html') }}!</h1>
<div class="info">
Dies ist ein Beispiel für ein Twig-Template.<br>
Du kannst beliebige Variablen und Logik verwenden.
</div>
</body>
</html>