diff options
Diffstat (limited to 'scripts/minimaws/lib/htmltmpl.py')
-rw-r--r-- | scripts/minimaws/lib/htmltmpl.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/minimaws/lib/htmltmpl.py b/scripts/minimaws/lib/htmltmpl.py new file mode 100644 index 00000000000..2c71fea9fb9 --- /dev/null +++ b/scripts/minimaws/lib/htmltmpl.py @@ -0,0 +1,22 @@ +#!/usr/bin/python +## +## license:BSD-3-Clause +## copyright-holders:Vas Crabb + +import string + + +MACHINE_PROLOGUE = string.Template( + '<!DOCTYPE html>\n' \ + '<html>\n' \ + '<head>\n' \ + ' <meta http-equiv="Content-Type" content="text/html; charset=utf-8">\n' \ + ' <title>${description} (${shortname})</title>\n' \ + '</head>\n' \ + '<body>\n' \ + '<h1>${description}</h1>\n' \ + '<table>\n' \ + ' <tr><th style="text-align: right">Short name:</th><td>${shortname}</td></tr>\n' \ + ' <tr><th style="text-align: right">Is device:</th><td>${isdevice}</td></tr>\n' \ + ' <tr><th style="text-align: right">Runnable:</th><td>${runnable}</td></tr>\n' \ + ' <tr><th style="text-align: right">Source file:</th><td>${sourcefile}</td></tr>\n') |