Move navbar search bar render check to templated

This commit is contained in:
syeopite
2021-04-17 05:18:58 -07:00
parent 65942cd46c
commit 5c0458a887
3 changed files with 4 additions and 3 deletions

View File

@@ -48,7 +48,8 @@ module JSON::Serializable
end
end
macro templated(filename, template = "template")
macro templated(filename, template = "template", navbar_search = true)
navbar_search = {{navbar_search}}
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr"
end