jinja2 python

Solutions on MaxInterview for jinja2 python by the best coders in the world

showing results for - "jinja2 python"
Julieta
14 Oct 2019
1<!DOCTYPE html>
2<html lang="en">
3<head>
4    <meta charset="UTF-8">
5    <meta http-equiv="X-UA-Compatible" content="IE=edge">
6    <meta name="viewport" content="width=device-width, initial-scale=1.0">
7    <title>Document</title>
8</head>
9<body>
10    <div class = "container">
11      <h1>
12        Hi my name is {{ name }}
13      </h1>
14    </div>
15</body>
16</html>
Luca
02 Oct 2020
1import flask 
2from flask import Flask , render_templates
3
4app = Flask(__name__)
5@app.route("/")
6def hi():
7  name = "Your Name"
8  return render_templates(index.html , name = name)
9
10# The html code below this code is mine