feat: adds some test cases where they were missing, and some minor readme additions
This commit is contained in:
parent
bb57b23224
commit
d3b4bef531
24 changed files with 180 additions and 1 deletions
5
testdata/template__require__err.ct
vendored
Normal file
5
testdata/template__require__err.ct
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# require errors when variable is missing
|
||||
$ fecho tpl {{ require .FILE }}
|
||||
$ pda set tmpl@tplr < tpl
|
||||
$ pda get tmpl@tplr --> FAIL
|
||||
FAIL cannot get 'tmpl@tplr': template: cmd:1:3: executing "cmd" at <require .FILE>: error calling require: required value is missing or empty
|
||||
Loading…
Add table
Add a link
Reference in a new issue