toondaey / nestjs-pdf

Nest js pdf generator
MIT License
80 stars 37 forks source link

Forced template naming #168

Open zub0r opened 2 years ago

zub0r commented 2 years ago

This is kind of weird to force specific naming pattern of templates. I had to find it in code to configure it right.

    private getTemplatePath(
        template: string,
        { root, extension, engine }: ViewOptions,
    ): string {
        return join(root, template, `html.${extension || engine}`);
    }