mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-23 19:21:04 +08:00
10 lines
292 B
CoffeeScript
10 lines
292 B
CoffeeScript
{fs, path} = app.libs
|
|
|
|
template_data = {}
|
|
|
|
for filename in fs.readdirSync "#{__dirname}/template"
|
|
template_name = path.basename filename, path.extname(filename)
|
|
template_data[template_name] = fs.readFileSync("#{__dirname}/template/#{filename}").toString()
|
|
|
|
module.exports = template_data
|