Skip to content

Allow configuring parameters for Nunjucks #278

@dhruvkb

Description

@dhruvkb

🐞 Describe the bug

Currently some configuration options for Nunjucks are hardcoded into the action.

nunjucks.configure({ autoescape: true, trimBlocks: true, lstripBlocks: true })

These can be incompatible with the needs of a project. For example, in a YAML project, autoescape can cause single quotes (') to be replaced with HTML entity codes (').

📚 To reproduce

Use a template-based approach to write YAML containing single quotes.

💡 Expected behavior

Nunjucks should be configurable by setting some options on the action that are passed into the nunjucks.configure function.

🖼️ Screenshots

No response

⚙️ Environment

v1.18.0

📋 Additional context

I'd be happy to open a PR to resolve this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions