Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addPreprocessor support for 11ty.js and Custom templates (via useJavaScriptImport property) #3452

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

zachleat
Copy link
Member

  • Adds useJavaScriptImport method to TemplateEngine class and enables by default for JavaScript (11ty.js) templates.
  • useJavaScriptImport takes precedence over needsToReadFileContents (Custom template engine read property)
  • Adds an useJavaScriptImport property to Custom template options (boolean)

https://www.11ty.dev/docs/languages/custom/#full-options-list

@zachleat zachleat added the needs-documentation Documentation for this issue/feature is pending! label Sep 19, 2024
@zachleat zachleat added this to the Eleventy 3.0.0 milestone Sep 19, 2024
@zachleat zachleat merged commit 81524ad into main Sep 19, 2024
20 checks passed
@zachleat zachleat deleted the issue-3433 branch September 19, 2024 21:39
zachleat added a commit to 11ty/11ty-website that referenced this pull request Sep 27, 2024
@zachleat zachleat removed the needs-documentation Documentation for this issue/feature is pending! label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant