Allow configuring parameters for Nunjucks #278
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
🐞 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
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.
The text was updated successfully, but these errors were encountered: