summaryrefslogtreecommitdiff
path: root/scripts/html_index.py
blob: 0da5b05de397931daadc953d52f5a7f029c5740f (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":"./menu.html",     "name":"menu"}).print()
            html("frame", {"src":"./subindex.html", "name":"body"}).print()

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