Skip to content

Commit 2879386

Browse files
author
Andrea
committed
Two versions of jinja2 template to use in the code, template2 final version
1 parent 612ffbc commit 2879386

File tree

2 files changed

+66
-0
lines changed

2 files changed

+66
-0
lines changed

template.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
5+
<head>
6+
<meta charset="utf-8">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
9+
<title>SNP DNA SEQ</title>
10+
11+
<link rel="stylesheet" href="style.css">
12+
</head>
13+
14+
<body>
15+
<div>
16+
<h1>Random SNPs</h1>
17+
18+
<h2>Original Sequence</h2>
19+
20+
<p>{{original}}</p>
21+
22+
{% for mutated_seq in mutated_seq_list %}
23+
<h2>Sequence {{loop.index}}</h2>
24+
25+
<p>
26+
{{mutated_seq}}
27+
</p>
28+
{% endfor %}
29+
30+
</div>
31+
</body>
32+
33+
</html>

template2.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
5+
<head>
6+
<meta charset="utf-8">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
9+
<title>SNP DNA SEQ</title>
10+
11+
<link rel="stylesheet" href="style.css">
12+
</head>
13+
14+
<body>
15+
<div>
16+
<h1>Random SNPs</h1>
17+
18+
<h2>Original Sequence</h2>
19+
20+
<p>{{original}}</p>
21+
22+
{% for mutated_seq in mutated_seq_list %}
23+
<h2>Sequence {{loop.index}}</h2>
24+
25+
<p>
26+
{{mutated_seq.before}} <span id="mutation">{{mutated_seq.new_letter}} </span> {{mutated_seq.after}}
27+
</p>
28+
{% endfor %}
29+
30+
</div>
31+
</body>
32+
33+
</html>

0 commit comments

Comments
 (0)