From 22454c2bc20b2aecca97230d67ef54a70d3930a2 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Wed, 20 Nov 2024 15:38:06 -0500 Subject: [PATCH] Rename templates for .j2 extension --- src/letsrolld/webcli/cli.py | 6 +++--- .../webcli/templates/{director.template => director.j2} | 0 .../webcli/templates/{film-full.template => film-full.j2} | 0 src/letsrolld/webcli/templates/{film.template => film.j2} | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename src/letsrolld/webcli/templates/{director.template => director.j2} (100%) rename src/letsrolld/webcli/templates/{film-full.template => film-full.j2} (100%) rename src/letsrolld/webcli/templates/{film.template => film.j2} (100%) diff --git a/src/letsrolld/webcli/cli.py b/src/letsrolld/webcli/cli.py index 4b451a2..6dff12a 100644 --- a/src/letsrolld/webcli/cli.py +++ b/src/letsrolld/webcli/cli.py @@ -30,17 +30,17 @@ def list_film(film): - template = env.get_template("film.template") + template = env.get_template("film.j2") return template.render(film=film) def list_director(director): - template = env.get_template("director.template") + template = env.get_template("director.j2") return template.render(director=director) def report_film(film): - template = env.get_template("film-full.template") + template = env.get_template("film-full.j2") return template.render(film=film, offers=DEFAULT_OFFERS) diff --git a/src/letsrolld/webcli/templates/director.template b/src/letsrolld/webcli/templates/director.j2 similarity index 100% rename from src/letsrolld/webcli/templates/director.template rename to src/letsrolld/webcli/templates/director.j2 diff --git a/src/letsrolld/webcli/templates/film-full.template b/src/letsrolld/webcli/templates/film-full.j2 similarity index 100% rename from src/letsrolld/webcli/templates/film-full.template rename to src/letsrolld/webcli/templates/film-full.j2 diff --git a/src/letsrolld/webcli/templates/film.template b/src/letsrolld/webcli/templates/film.j2 similarity index 100% rename from src/letsrolld/webcli/templates/film.template rename to src/letsrolld/webcli/templates/film.j2