From a79e1b6ca113403d315589cf369dca91772225f1 Mon Sep 17 00:00:00 2001 From: Michael Teeuw Date: Wed, 18 Oct 2017 13:52:11 +0200 Subject: [PATCH] Rename templates to .njk files to allow syntax highlighting. --- modules/default/weather/{current.html => current.njk} | 0 modules/default/weather/{forecast.html => forecast.njk} | 0 modules/default/weather/weather.js | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename modules/default/weather/{current.html => current.njk} (100%) rename modules/default/weather/{forecast.html => forecast.njk} (100%) diff --git a/modules/default/weather/current.html b/modules/default/weather/current.njk similarity index 100% rename from modules/default/weather/current.html rename to modules/default/weather/current.njk diff --git a/modules/default/weather/forecast.html b/modules/default/weather/forecast.njk similarity index 100% rename from modules/default/weather/forecast.html rename to modules/default/weather/forecast.njk diff --git a/modules/default/weather/weather.js b/modules/default/weather/weather.js index 75cb1060..8ef86a3a 100644 --- a/modules/default/weather/weather.js +++ b/modules/default/weather/weather.js @@ -88,7 +88,7 @@ Module.register("weather",{ // Select the template depending on the display type. getTemplate: function () { - return this.config.type.toLowerCase() + ".html" + return this.config.type.toLowerCase() + ".njk" }, // Add all the data to the template.