danielgtaylor / aglio

An API Blueprint renderer with theme support that outputs static HTML
4.75k stars 480 forks source link

Doesn't support engines that are installed from scoped packages #341

Open shoebox639 opened 6 years ago

shoebox639 commented 6 years ago

I have a private engine at @my-private-scope/aglio-theme-foo. When I do aglio -t foo, aglio is unable to find this module, because it's only looking for modules like this:

require('aglio-theme-' + theme)

where theme is foo in my case.

It would be nice to be able to take a whole module path as the template engine like:

aglio -t @my-private-scope/aglio-theme-foo

thanks

filipemeneses commented 5 years ago

That would allow a way more practical:

aglio -t ./path/to/theme