Extract and implement footer overhaul from #2215

This commit is contained in:
syeopite
2023-07-24 15:11:45 -07:00
committed by Fijxu
parent 325561e755
commit e98aafa4b5
8 changed files with 242 additions and 67 deletions

View File

@@ -48,8 +48,9 @@ module JSON::Serializable
end
end
macro templated(_filename, template = "template", navbar_search = true)
macro templated(_filename, template = "template", navbar_search = true, buffer_footer = false)
navbar_search = {{navbar_search}}
buffer_footer = {{buffer_footer}}
{{ filename = "src/invidious/views/" + _filename + ".ecr" }}
{{ layout = "src/invidious/views/" + template + ".ecr" }}