Pull 'player' out into seperate component

This commit is contained in:
Omar Roth
2018-08-11 10:52:13 -05:00
parent debe5cbea9
commit ce0e4babad
7 changed files with 207 additions and 338 deletions

View File

@@ -9,8 +9,8 @@ macro add_mapping(mapping)
DB.mapping({{mapping}})
end
macro templated(filename)
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/layout.ecr"
macro templated(filename, template = "layout")
render "src/invidious/views/#{{{filename}}}.ecr", "src/invidious/views/#{{{template}}}.ecr"
end
macro rendered(filename)