mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
Update html.js
This commit is contained in:
+6
-3
@@ -1,8 +1,11 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const addonPageTemplate = fs.readFileSync('../template/addon/index.html').toString()
|
||||
const homePageTemplate = fs.readFileSync('../template/home/index.html').toString()
|
||||
const homePageAddonTemplate = fs.readFileSync('../template/home/list-addon.html').toString()
|
||||
const templateFolder = path.join(__dirname, '..', 'template')
|
||||
|
||||
const addonPageTemplate = fs.readFileSync(path.join(templateFolder, 'template', 'addon', 'index.html')).toString()
|
||||
const homePageTemplate = fs.readFileSync(path.join(templateFolder, 'template', 'home', 'index.html')).toString()
|
||||
const homePageAddonTemplate = fs.readFileSync(path.join(templateFolder, 'template', 'home', 'list-addon.html')).toString()
|
||||
|
||||
const processHtml = (templateName, map) => {
|
||||
let template
|
||||
|
||||
Reference in New Issue
Block a user