-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement jinja2 template rendering closes #62
- Loading branch information
1 parent
35585cb
commit 3131f88
Showing
4 changed files
with
69 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% set cmd = 'echo' %} | ||
--- | ||
Main Menu: | ||
{% for i in [1, 2, 3] %} | ||
- Menu {{ i }}: {{ cmd }} {{ i }} | ||
{% endfor %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% set cmd = 'echo' %} | ||
{ | ||
"メインメニュー": [ | ||
{"サービス稼動状態確認": "{{ cmd }} 'サービス稼動状態確認'"}, | ||
{"サーバリソース状況確認": "echo 'サーバリソース状況確認'"}, | ||
{"業務状態制御メニュー": [ | ||
{"業務状態確認": "echo '業務状態確認'"}, | ||
{"業務開始": "echo '業務開始'"}, | ||
{"業務終了": "echo '業務終了'"} | ||
]}, | ||
{"Webサービス制御メニュー": [ | ||
{"Webサービス状態確認": "echo 'Webサービス状態確認'"}, | ||
{"Webサービス起動": "echo 'Webサービス起動'"}, | ||
{"Webサービス停止": "echo 'Webサービス停止'"} | ||
]}, | ||
{"サーバ再起動": "echo 'サーバ再起動'"} | ||
] | ||
} |