21 lines
429 B
Lua
21 lines
429 B
Lua
local weeks = {
|
|
weeks = {}
|
|
}
|
|
weeks.order = {
|
|
"tutorial",
|
|
"week1",
|
|
"week2",
|
|
"week3",
|
|
"week4",
|
|
"week5",
|
|
"week7",
|
|
"weekend1"
|
|
}
|
|
|
|
for index, week in next, love.filesystem.getDirectoryItems("weeks") do
|
|
if week == "init.lua" then goto continue end
|
|
weeks.weeks[week:sub(1, week:len() - 4)] = require("weeks."..week:sub(1, week:len() - 4))
|
|
::continue::
|
|
end
|
|
|
|
return weeks |