github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/modtests/0003/doc.yml (about) 1 vars: 2 folder: module 3 title: return value 4 weight: 2143 5 log: yes 6 head: | 7 Showcase the return value from module 8 9 sections: 10 - title: How does it work? 11 content: | 12 In this demo, the var b from module is returned to caller 13 14 Pleas note that the two vars used in Say_world will produce the result based on the input, the var a is passed in from external caller and overriden. This is a design pattern of IOC - inverse of controll, a feature to allow consumer code to inject data to module, and the module will focus on detailed implementation 15 16 - title: config file - upconfig.yml 17 filelookup: upconfig.yml 18 19 - title: up task - up.yml 20 filelookup: up.yml 21 22 - title: up module task - up.yml 23 filelookup: hello-module/up.yml