utempl -t wosrc: génère des pages bootstrap par défaut
This commit is contained in:
parent
8fced87f34
commit
f0f7a6ff3e
|
@ -181,10 +181,13 @@ html>
|
|||
body>
|
||||
h1>
|
||||
EOF
|
||||
fi
|
||||
if [ -n "$blueprint" ]; then
|
||||
elif [ -n "$blueprint" ]; then
|
||||
cat >>"$file" <<EOF
|
||||
wo:blueprintm> menu="menu" q:title=""
|
||||
EOF
|
||||
elif [ -n "$bootstrap" ]; then
|
||||
cat >>"$file" <<EOF
|
||||
wo:bspagem> menu="menu" q:title=""
|
||||
EOF
|
||||
fi
|
||||
[ -n "$2" ] && array_add "$2" "$file"
|
||||
|
@ -249,7 +252,8 @@ implements=()
|
|||
body=
|
||||
doctype=
|
||||
html=
|
||||
blueprint=1
|
||||
blueprint=
|
||||
bootstrap=1
|
||||
parse_opts "${PRETTYOPTS[@]}" \
|
||||
--help '$exit_with display_help' \
|
||||
-t:,--template: template= \
|
||||
|
@ -263,8 +267,9 @@ parse_opts "${PRETTYOPTS[@]}" \
|
|||
--implements: implements \
|
||||
--body: body= \
|
||||
--doctype: doctype= \
|
||||
--html '$html=1; doctype=html4; blueprint=' \
|
||||
--blueprint,--bp '$blueprint=1; html=' \
|
||||
--html '$html=1; doctype=html4; blueprint=; bootstrap=' \
|
||||
--blueprint,--bp '$blueprint=1; html=; bootstrap=' \
|
||||
--bootstrap,--bs '$bootstrap=1; html=; blueprint=' \
|
||||
@ args -- "$@" && set -- "${args[@]}" || die "$args"
|
||||
|
||||
[ -n "$encoding" ] || encoding=utf-8
|
||||
|
|
Loading…
Reference in New Issue