From c78d7587707e883e37b519b715011a9c1fb9d63e Mon Sep 17 00:00:00 2001 From: lulzette Date: Thu, 25 Mar 2021 21:11:03 +0000 Subject: [PATCH] tpl --- views/footer.tpl | 3 +++ views/header.tpl | 13 +++++++++++++ views/index.tpl | 20 ++++++++++++++++++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 views/footer.tpl create mode 100644 views/header.tpl diff --git a/views/footer.tpl b/views/footer.tpl new file mode 100644 index 0000000..9499aa4 --- /dev/null +++ b/views/footer.tpl @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/views/header.tpl b/views/header.tpl new file mode 100644 index 0000000..cb204f4 --- /dev/null +++ b/views/header.tpl @@ -0,0 +1,13 @@ + + + + libvirt domctl + + + + + \ No newline at end of file diff --git a/views/index.tpl b/views/index.tpl index 29449e9..66eb004 100644 --- a/views/index.tpl +++ b/views/index.tpl @@ -1,11 +1,27 @@ -

-{{name}} +%include ('header.tpl') +

+Welcome to libvirt domain ctl

+SRC: {{name}} + +<% +print(name) +%> %for i in name:
  • {{i['name']}}, state: {{i['state']}} +
    + + +
  • + + + %end +%include ('footer.tpl') \ No newline at end of file