Skip to content

Html beautifier after render #18

@4m1n0s

Description

@4m1n0s

after rendering nunjucks files to html, the result files are not well formatted,

i fixed this issue using prettier

        const prettier = require('prettier');
        ........
        const res = prettier.format(configure.render(
          template.from,
          Object.assign(baseContext, template.context),
          template.callback ? template.callback : null
        ), { parser: 'vue', useTabs: true, tabWidth: 4 });

not sure if it's a correct fix or not !

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