github.com/upcmd/up@v0.8.1-0.20230108151705-ad8b797bf04f/tests/functests/c0145.yml (about) 1 doc_meta: | 2 folder: cmd-func 3 title: template using data file 4 head: | 5 This showcases the feature that you can render a template using the loaded vars from a file 6 7 sections: 8 - title: Demo 9 log: yes 10 11 notes: 12 - add datafile to load the vars from the datafile 13 - refdir apply to datafile 14 15 tasks: 16 17 - name: task 18 desc: mock up test to test module.template rendering 19 task: 20 - func: cmd 21 do: 22 - 23 name: template 24 desc: render a template file to a file 1 25 cmd: 26 src: ./tests/functests/d0145.template 27 dest: /tmp/mockup_doc.md 28 datafile: d0145_data.yml 29 30 - func: shell 31 do: 32 - cat /tmp/mockup_doc.md