The notes of bnijenhuis · Feb 2, 2025
Adding Prettier in Eleventy using Transforms
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
Recently I decided to look into some functionality in Eleventy I hadn't used before: Transforms . According to their website: Transforms can modify a template’s output. For example, use a transform to format/prettify an HTML file with proper whitespace. So let's try and use this functionality to have nicely formatted HTML by using Prettier . Prettier is a code formatter that can be used for a…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.