Skip to content

maybe pass pug flags down to the template render call? #49

Open
@misterbrownlee

Description

@misterbrownlee

I'm wanting my Hyper Text Markup Language to have some--pretty without having to write my own template js or hack the default template in node_modules. However, maybe nobody else wants this feature? I think I'll take a poke at it anyway, unless someone stops me.

Ultimately the opts have get passed down to topdoc-default-template, but having them get parsed out of .topdocrc would be the right thing, which is handled here, not the template. I don't see other flags that would make much sense, and I don't know if mucking with an array of flags is worth it... not for now anyway. At the least I can start with the thing I need (setPugPretty: true or something), and folks can pile on if they want other flags?

It could be simple I think... if (config.setPugPretty) ... and just hand off and extra arg to the renderer call here. It might make a little ugly if else, but I could maybe build the call params prior to the call to clean it up a little?

WDYT y'alls?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions