rpub
rpub copied to clipboard
Passing config options to compile
Is there a way to pass the options in the config.yml as parameters? I'm generating multiple ePubs, where they all have different authors, titles, etc. For example:
rpub compile(title: "The Book Title", author: "My Name")
Hm, no, I don't think so. The use case also hadn't occurred to me before. Are you calling the compilation in a Ruby script, or using the command line?
I wanted to call the compilation from within Ruby, to dynamically generate downloadable ePub files from markdown. Right now, I'm using the recently open-sourced Docverter library, which is working well enough and I can get it to do everything I want it to do, but there can be quite a few hoops to jump through.