Question 19
Consider the following python code snippet app.py, the HTML files, base.html and home.html residing in “templates” folder.
app.py
from flask import Flask, render_templateapp = Flask(__name__)@app.route('/')def home(): return render_template('home.html')app.run(debug=True)home.html
{% extends "base.html" %}{% block content %}<p>MAD I</p><span>MAD II</span><p>DBMS</p>{% endblock %}base.html
<!DOCTYPE html><html lang="en"><head> <title>IITM</title></head><body> <h2 style="color: violet;"> Diploma Courses </h2> {% block content %} {% endblock %}</body></html>What will be the rendered output for base URL if flask app is running locally on http://localhost:5000 ?