diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-12-31 21:15:20 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-12-31 21:15:20 +0200 |
commit | 39a2a48338ce0b05ebb79db2bb0152050f3b5019 (patch) | |
tree | 265f345d3434a59300303eb2cf108842811355f1 /obbenchlib | |
parent | ebf988b0e5474ba403f173ef532e5f43678c053e (diff) | |
download | obnam-benchmarks-39a2a48338ce0b05ebb79db2bb0152050f3b5019.tar.gz |
Include all of spec on front page
Diffstat (limited to 'obbenchlib')
-rw-r--r-- | obbenchlib/htmlgen.py | 2 | ||||
-rw-r--r-- | obbenchlib/templates/index.j2 | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/obbenchlib/htmlgen.py b/obbenchlib/htmlgen.py index 195f2c1..2b85f6b 100644 --- a/obbenchlib/htmlgen.py +++ b/obbenchlib/htmlgen.py @@ -104,6 +104,8 @@ class FrontPage(HtmlPage): for benchmark in sorted(self.spec['benchmarks']) ], 'results_table': self.results_table(), + 'spec': yaml.safe_dump( + self.spec, indent=4, default_flow_style=False) } yield 'index.html', self.render('index.j2', variables) diff --git a/obbenchlib/templates/index.j2 b/obbenchlib/templates/index.j2 index 3212abb..84dbb1c 100644 --- a/obbenchlib/templates/index.j2 +++ b/obbenchlib/templates/index.j2 @@ -24,5 +24,8 @@ </tr> {% endfor %} </table> + + <h2>Spec file</h2> + <p><pre>{{ spec }}</pre></p> </body> </html> |