JavaScript
6
Eleventy Short Name File Extension NPM Package 11ty.js .11ty.js N/A Eleventy supports many different types of JavaScript content that will be parsed as Eleventy templates:
Raw Values Raw values will not have access to Data or JavaScript Template Functions. Use a function that returns a value instead.
String {% codetitle “JavaScript”, “Syntax” %}
1 module.exports = "<p>Zach</p>"; Or template literals: