From b72f3c22748de03b49ebb8bdb1b735455a33a69a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Wed, 15 Aug 2018 20:31:47 -0500 Subject: [PATCH] Rename 'layout' to 'template' --- src/invidious/helpers/macros.cr | 2 +- src/invidious/views/{layout.ecr => template.ecr} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename src/invidious/views/{layout.ecr => template.ecr} (100%) diff --git a/src/invidious/helpers/macros.cr b/src/invidious/helpers/macros.cr index bcb01c4b0..977b1fbc9 100644 --- a/src/invidious/helpers/macros.cr +++ b/src/invidious/helpers/macros.cr @@ -9,7 +9,7 @@ macro add_mapping(mapping) DB.mapping({{mapping}}) end -macro templated(filename, template = "layout") +macro templated(filename, template = "template") render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr" end diff --git a/src/invidious/views/layout.ecr b/src/invidious/views/template.ecr similarity index 100% rename from src/invidious/views/layout.ecr rename to src/invidious/views/template.ecr