naturalcrit / homebrewery

Create authentic looking D&D homebrews using only markdown
https://homebrewery.naturalcrit.com
MIT License
1.04k stars 318 forks source link

Standalone Homebrewery script? #225

Closed adangtran87 closed 7 years ago

adangtran87 commented 7 years ago

I'm not acquainted with javascript so apologies if this is a dumb question, but is there an easy way to run/package your modified markdown and html generation in a standalone script?

Use case:

Eventual Goals:

I know this is not a use case that's intended for the site itself, so I understand if this delineation isn't feasible. Ideally I'd like to leverage your business logic and hopefully it only requires a little bit of packaging to make this possible.

michaeltlombardi commented 7 years ago

I'd be interested in using/helping with this. I have the same use cases.

stolksdorf commented 7 years ago

I would be relatively easy to do this, as this is exactly what happens when the print page is rendered. Look through the code to see how that's done and you can pull out those parts into a headless script.