From a251ede5bdbf9ce41c238530839cce5a7206930c Mon Sep 17 00:00:00 2001 From: Henrik Christensen Date: Tue, 7 Sep 2021 13:36:21 +0200 Subject: [PATCH] Deprecate dependency on Kilt (#615) --- src/kemal/helpers/macros.cr | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kemal/helpers/macros.cr b/src/kemal/helpers/macros.cr index 4b5e309..59735c1 100644 --- a/src/kemal/helpers/macros.cr +++ b/src/kemal/helpers/macros.cr @@ -60,6 +60,7 @@ end # ``` # render "src/views/index.ecr", "src/views/layout.ecr" # ``` +@[Deprecated("Use `ECR#render` instead")] macro render(filename, layout) __content_filename__ = {{filename}} content = render {{filename}} @@ -67,6 +68,7 @@ macro render(filename, layout) end # Render view with the given filename. +@[Deprecated("Use `ECR#render` instead")] macro render(filename) Kilt.render({{filename}}) end