mirror of
https://github.com/TECHNOFAB11/ergogen.git
synced 2026-02-02 09:25:09 +01:00
Injectable PCB templates
This commit is contained in:
parent
21e50cb11d
commit
6079aaf332
31 changed files with 277 additions and 251 deletions
BIN
test/fixtures/bundle.zip
vendored
BIN
test/fixtures/bundle.zip
vendored
Binary file not shown.
5
test/fixtures/bundle/config.yaml
vendored
5
test/fixtures/bundle/config.yaml
vendored
|
|
@ -11,3 +11,8 @@ pcbs:
|
|||
injected:
|
||||
what: injected
|
||||
where: matrix
|
||||
custom_template:
|
||||
outlines.edge.outline: box
|
||||
template: custom_template
|
||||
params:
|
||||
secret: 42
|
||||
3
test/fixtures/bundle/templates/custom_template.js
vendored
Normal file
3
test/fixtures/bundle/templates/custom_template.js
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
module.exports = params => {
|
||||
return `Custom template override. The secret is ${params.custom.secret}.`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue