0

I have RUBY rougify running in a docker container. I want to send it ~some code~ either via cli or a http POST (I don't mind which). I then want it to respond with the HTML snippet and inline style.

I plan to then store this formatted HTML in a DB to serve on a website.

  1. Is this a bad idea/ is there a better approach? (I can see the danger in holding html code in a db, while I could separate out the css style I would still want to store in the db the code and its language)

  2. How can this be achieved? So far I can BW format in terminal

root@853b808808ca:/app# cat index.php | rougify highlight > formatted.html

how do I specify the theme, and the output while formatted in terminal doesn't seem to have changed the code.

Christian
  • 4,902
  • 4
  • 24
  • 42
mike
  • 41
  • 3

0 Answers0