Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html formatter #5

Open
bitboxer opened this issue Jul 13, 2013 · 2 comments
Open

html formatter #5

bitboxer opened this issue Jul 13, 2013 · 2 comments

Comments

@bitboxer
Copy link
Contributor

I am currently thinking of writing a nice little html formatter that also display a few nice graphics on that page using charts.js and pure.css .

The only problem: it would just output the html on the console. Would it be okay if a formatter would store the output in a temporary file and opened a browser instead? The output would be the location of the file and a description on how to configure the browser in the timetrap config file.

@samg
Copy link
Owner

samg commented Jul 15, 2013

That sounds awesome. You might look at the tempfile library (http://www.ruby-doc.org/stdlib-1.9.3/libdoc/tempfile/rdoc/Tempfile.html) for writing the file though it might make sense to put it in a more predictable location. The file location could be configurable using the t configure command.

@bitboxer
Copy link
Contributor Author

I can't use the build in tempfile lib because that one will delete the created file when the interpreter shuts down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants