-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Hi,
First - this whole project is great. It took some time to get up to speed but super impressive what you have put together.
I would like to customize the output HTML report. Things I would like to do are:
- Add a header with a logo for branding the report.
- I'm imagining running the simulation in a Github Action and then posting the report to a Github Pages for that project.
- Then the results can be viewed nicely via the CI.
- Add a script that auto refreshes when the project builds
- For example, something like this: https://livejs.com/
- Customize the CSS for the report by including files in the
headsection. - Sky is the limit honestly, I really like wavedrom for waveforms.
With the current implementation of Report2Html.tcl - I don't see a clear way to do that without modifying it and adding a bunch of code. Maybe I missed something ?
In my ideal world - I would be to keep these project specific customizations in the Parent project that is leveraging this repo as a submodule or library.
Have you considered using a template engine for generating the HTML? Coming from Python, there are several template engines for generating HTML content formats (for example, Jinja). They do a really nice job of separating out the presentation layer from the data.
I'm not an expert in TCL but google seems to indicate there are a couple of TCL-based template engine options:
- textutil::expander
- Seems to already be in
tcllib(I've checked it is present intcllibv1.20 package on ubuntu 22.04) - Docs seem pretty sparse to me but what do I know.
- Seems to already be in
- TemplaTCL
- I don't know where this is - I can't find it on github. Seems like this might just be a message board ?
- This would add a dependency which is probably not optimal.
Thoughts? Is this a reasonable path or have you tried this already and hic sunt dracones?