Skip to content

Commit 6b942df

Browse files
committed
jinja partials installed and setup.
1 parent 3d8e009 commit 6b942df

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

code/ch5_partials/ch5_final_video_collector/app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22

33
import flask
4+
import jinja_partials
45

56
from services import video_service
67

@@ -22,6 +23,7 @@ def configure():
2223

2324

2425
def register_template_ops():
26+
jinja_partials.register_extensions(app)
2527
helpers = {
2628
'len': len,
2729
'isinstance': isinstance,

code/ch5_partials/ch5_final_video_collector/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pydantic
44
more_itertools
55
MarkupSafe
66
Jinja2
7+
jinja-partials

0 commit comments

Comments
 (0)