Add: JS template
This commit is contained in:
26
res/template.js
Normal file
26
res/template.js
Normal 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)
|
||||
}
|
||||
}
|
||||
|
||||
3
src/ergogen_footprint_converter/converter.py
Normal file
3
src/ergogen_footprint_converter/converter.py
Normal file
@@ -0,0 +1,3 @@
|
||||
class Converter:
|
||||
def __init__(self):
|
||||
None
|
||||
Reference in New Issue
Block a user