@@ -0,0 +1,17 @@
|
||||
{% extends "_base.html" %}
|
||||
|
||||
{% block title %}Second Page - Lab 03{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="content-box main-content">
|
||||
<h1 class="main-title">Second Page</h1>
|
||||
<p>
|
||||
This is the second page of our Flask application.
|
||||
</p>
|
||||
<p>
|
||||
Here you can see how Jinja2 template inheritance allows us to reuse the same layout across multiple pages.
|
||||
The navbar, header, and sidebar are all defined in <code>_base.html</code>, while this content is unique to <code>second.html</code>.
|
||||
</p>
|
||||
<img src="/public/images/cats.jpeg" alt="Cats" class="img-fluid">
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user