Clayton
claytonerrington.com
Clayton
@claytonerrington.com
Just another web site creator making static sites with 11ty. Programming things in PowerShell and Python for AWS. Building things for Linux and Windows everyday.
I had a project that worked with the SessionState and run spaces. The fancy $script:var and $using:var helped manage the state of a variable set at the global level. The ForEach-Object -Parallel creates a new run space for each object as well to manage.
April 29, 2025 at 1:29 PM
I would think it would work as you have it as well with the macro defined outside the loop, but I haven't used macros myself. Something to look into for sure, I didn't know this was a thing.
March 21, 2025 at 6:24 PM
I did find this link that puts the macro in its own nunjucks file to make it an included component and more "function" like in the process.

www.trysmudford.com/blog/encapsu...
March 21, 2025 at 6:24 PM
Is this an 11ty thing or Nunjucks?

Does the macro need to be within the loop, or could it be declared outside the loop and referenced inside?
March 21, 2025 at 2:57 AM
That's a lot of community plugins too. It would be great if they were grouped by types and filterable as well. Kinda got lost in the list, but also saw some great things too.
March 20, 2025 at 6:13 PM
Have @zachleat.com do this now while we're in the meetup. 😆

On the 11ty Plugin page is a great spot as well.
March 20, 2025 at 6:09 PM
The start of a rubber band ball.
March 5, 2025 at 10:36 PM
Article is behind a paywall. It’s archived here: https://archive.is/p6vj9
February 9, 2025 at 5:57 PM