Add: JS template

This commit is contained in:
Jonas Zeunert
2024-04-27 13:57:53 +02:00
parent 28a38ad317
commit de6753ce3a
2 changed files with 29 additions and 0 deletions

26
res/template.js Normal file
View File

@@ -0,0 +1,26 @@
module.exports = {
params: {
{% params %}
},
body: params => {
const main = (...body) => {
return `
{% main %}
${...body.join('\n')}
`
}
const captions = () => {
return `
{% captions %}
`
}
const pins = () => {
return `
{% pins %}
`
}
return main(captions, pins)
}
}

View File

@@ -0,0 +1,3 @@
class Converter:
def __init__(self):
None