Deprecate dependency on Kilt (#615)

This commit is contained in:
Henrik Christensen 2021-09-07 13:36:21 +02:00 committed by GitHub
parent 5473312f3d
commit a251ede5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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