-
-
Notifications
You must be signed in to change notification settings - Fork 108
Allow configuring parameters for Nunjucks #278
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
🐞 Describe the bug
Currently some configuration options for Nunjucks are hardcoded into the action.
repo-file-sync-action/src/helpers.js
Line 8 in 27113d1
| 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed