summaryrefslogtreecommitdiff
path: root/scripts/html_index.py
blob: 50415ca3e09a69687e4d749a10bc0864e454d8a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /usr/bin/env python3
#===============================
#
# html_index
#
# 2021/02/09 Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
#===============================
import html_base
from html_base import html
#====================================
#
# periject_html
#
#====================================
class periject_html(html_base.myhtml):

    #--------------------
    # print
    #--------------------
    def print(self):
        # |    |    |
        # |menu|body|
        # |    |    |
        with html("frameset", {"cols":"{},*".format(self.config("html-default-cols"))}):
            html("frame", {"src":"./html/menu.html",     "name":"menu"}).print()
            html("frame", {"src":"./html/subindex.html", "name":"body"}).print()

#====================================
#
# As command
#
#====================================
if __name__=='__main__':
    periject_html().print()