Is it possible to use Hugo as library?

I would like to use Hugo as a library as the last step in my project that generates a site as an output. My project reads a bunch of files types and prepares it as markdown files.

I dug into Hugo code and I found that there is a way to do it, but I’m afraid I’m wrong, so I had to ask.

If the answer is yes, what kind of features I might miss?

Thanks :slight_smile:

Yes and No. Yes, you can (cf. caddy-hugo). However, we don’t generally think about Hugo as a library when developing Hugo. If we change our APIs and break your stuff, we may not care. Be sure to use vendoring. :slightly_smiling: