-
Notifications
You must be signed in to change notification settings - Fork 24
template.md
zuowenjian@ayb edited this page Jun 22, 2016
·
1 revision
###交互
what's you name? default(boy) exit(q)
zwj
love rg ? [LOVE] ? (y/n) default(y) exit(q)
y
chose db!
1: mysql
2: orcal
3 other DB
please chose DB exit( q )
1
###结果
echo "this is rg tpl"
echo "Hi,zwj"
echo "love rg?"
echo "love you too! "
echo "mysql is free! "
###交互
what's you name? default(boy) exit(q)
dog
love rg ? [LOVE] ? (y/n) default(y) exit(q)
n
chose db!
1: mysql
2: orcal
3 other DB
please chose DB exit( q )
2
###结果
echo "this is rg tpl"
echo "Hi,dog"
echo "love rg?"
echo "you are tuhao!"
echo "this is rg tpl"
echo "Hi,%{YOUNAME}"
echo "love rg?"
#% T.LOVE : {
echo "love you too! "
#% }
#% T.DB == "mysql" : {
echo "mysql is free! "
#% }
#% T.DB == "orcal" : {
echo "you are tuhao!"
#% }
YOUNAME: !T.input
prompt : "what's you name?"
default : "boy"
LOVE : !T.bool
prompt : "love rg ?"
default: "y"
DB : !T.chose
prompt : "chose db!"
options:
- "mysql"
- "orcal"
%{VARNAME}
#% T.VARNAME : {
#% }
#% T.VARNAME =='value' : {
#% }