# Nunjucks

Nunjucks is a JavaScript templating engine with template inheritance, macros, and precompilation support.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Red Hat Developer Hub software template authoring with rhdh-templates

DevFeed: [Red Hat Developer Hub software template authoring with rhdh-templates](<https://devfeed.tech/articles/red-hat-developer-hub-software-template-authoring-with-rhdh-templates-12346.md>)

Original publisher: [Read original article](<https://developers.redhat.com/articles/2026/09/07/red-hat-developer-hub-software-template-authoring-rhdh-templates>)

Author: Kashish Mittal

Published: 2026-09-07T07:01:32Z

Content type: tutorial

Language: en

Sources: [Red Hat Developer](<https://devfeed.tech/sources/red-hat-developer.md>)

Topics: [Backstage](<https://devfeed.tech/topics/backstage.md>), [internal developer portal](<https://devfeed.tech/topics/internal-developer-portal.md>), [Nunjucks](<https://devfeed.tech/topics/nunjucks.md>), [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [YAML](<https://devfeed.tech/topics/yaml.md>)

Tags: [ai-coding-agents](<https://devfeed.tech/tags/ai-coding-agents.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [backstage](<https://devfeed.tech/tags/backstage.md>), [developer-portal](<https://devfeed.tech/tags/developer-portal.md>), [developer-productivity](<https://devfeed.tech/tags/developer-productivity.md>), [developer-tools](<https://devfeed.tech/tags/developer-tools.md>), [platform-engineering](<https://devfeed.tech/tags/platform-engineering.md>), [quick-start](<https://devfeed.tech/tags/quick-start.md>), [red-hat](<https://devfeed.tech/tags/red-hat.md>), [software-templates](<https://devfeed.tech/tags/software-templates.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

This tutorial introduces the rhdh-templates skill for building Red Hat Developer Hub and Backstage software templates with an AI coding assistant. It covers Nunjucks conventions, YAML schema checking, reference templates, local offline validation, repository templatization, and optional testing against a Red Hat Developer Hub instance.

### Source excerpt

If you are a platform engineer or developer building Red Hat Developer Hub software templates, you know the friction of wrestling with Nunjucks syntax, guessing location.yaml placements, and discovering errors only after rendering in your developer portal. While AI coding agents handle generic YAML, they lack Red Hat Developer Hub and Backstage-specific conventions. The post Red Hat Developer Hub software template authoring with rhdh-templates appeared first on Red Hat Developer.

## 11ty Hacks for Fun and Performance

DevFeed: [11ty Hacks for Fun and Performance](<https://devfeed.tech/articles/11ty-hacks-for-fun-and-performance-26560.md>)

Original publisher: [Read original article](<https://infrequently.org/2025/10/11ty-hacks-for-fun-and-performance/>)

Author: Alex Russell

Published: 2025-10-04T00:00:00Z

Content type: tutorial

Language: en

Sources: [Alex Russell](<https://devfeed.tech/sources/alex-russell.md>)

Topics: [Script](<https://devfeed.tech/topics/script.md>), [Nunjucks](<https://devfeed.tech/topics/nunjucks.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [11ty](<https://devfeed.tech/tags/11ty.md>), [async](<https://devfeed.tech/tags/async.md>), [blog](<https://devfeed.tech/tags/blog.md>), [blogging](<https://devfeed.tech/tags/blogging.md>), [build](<https://devfeed.tech/tags/build.md>), [code](<https://devfeed.tech/tags/code.md>), [fun](<https://devfeed.tech/tags/fun.md>), [hacks](<https://devfeed.tech/tags/hacks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [js](<https://devfeed.tech/tags/js.md>), [module](<https://devfeed.tech/tags/module.md>), [performance](<https://devfeed.tech/tags/performance.md>), [script](<https://devfeed.tech/tags/script.md>), [web](<https://devfeed.tech/tags/web.md>), [webdev](<https://devfeed.tech/tags/webdev.md>)

### AI overview

A developer shares techniques for improving performance in an 11ty site, including selectively loading shortcode resources through the 11ty Bundle plugin, avoiding duplicate scripts, and handling Nunjucks and Markdown preprocessing.

### Source excerpt

This blog really isn't just for beating up on Apple for the way it harms users, the web, standards, and society to maintain power and profits. So here's some fun stuff I've been doing in my 11ty setup to improve page performance. Contents Page-Specific Resources via Shortcodes and the 11ty Bundler Mo Pagination, Mo Problems Build Time Impact Scroll-Position Based Delayed Code Loading Faster CSS Selectors for 11ty Syntax Highlighting Lean Rada's CSS-only Low-Quality Image Previews Bonus Hack: Global Acronyms for Better Abbreviations Does It Work? Page-Specific Resources via Shortcodes and the 11ty Bundler You know how it gets once you've got a mature 11ty setup: shortcodes proliferate, and some generate output that might depend on JS or CSS. If your setup is anything like mine, you might also feel conflicted about including some of those resources globally. It's important to have them available for the posts that need them, but it's not great to bring a charting library, e.g., into every page when only 1 in 20 will need it. This blog has grown many such shortcodes that generate expansions for features like: Web Components for YouTube and Vimeo embeds WebPageTest.org test embeds plot.js based charts Here, for instance, is how a Vimeo embed looks in the markdown of a page, using Nunjucks for Markdown pre-processing: {% vimeo "VIDEOID", "TITLE" %} This expands to: <lite-vimeo videoid="VIDEOID" videotitle="TITLE"> <a href="http://vimeo.com/VIDEOID">TITLE</a> </lite-vimeo> But this also requires script; e.g.: <script type="module" async src="/assets/js/lite-vimeo/lite-vimeo.js"> </script> And the list keeps growing. To avoid having the weight of these components clogging up every page, a system for selectively pulling in their code would be helpful. It'd also be grand if we could make sure scripts appear just once, even if shortcodes are invoked multiple times per page. Included code should preferably also be located towards the top of the document. The 11ty Bundle plugin

## Add Pagination to Your Eleventy Static Generated Website in Minutes

DevFeed: [Add Pagination to Your Eleventy Static Generated Website in Minutes](<https://devfeed.tech/articles/add-pagination-to-your-eleventy-static-generated-website-in-minutes-21807.md>)

Original publisher: [Read original article](<https://www.thepolyglotdeveloper.com/blog/2022/01/add-pagination-eleventy-static-generated-website-minutes/>)

Author: Nic Raboy

Published: 2022-01-19T14:00:00Z

Content type: tutorial

Language: en

Sources: [Nic Raboy](<https://devfeed.tech/sources/nic-raboy.md>)

Topics: [Eleventy](<https://devfeed.tech/topics/eleventy.md>), [Nunjucks](<https://devfeed.tech/topics/nunjucks.md>), [modern web development](<https://devfeed.tech/topics/modern-web-development.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [eleventy](<https://devfeed.tech/tags/eleventy.md>), [html](<https://devfeed.tech/tags/html.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>)

### AI overview

A tutorial explains how to add pagination to an Eleventy website using video data and a Nunjucks template. It covers displaying page numbers and next or previous page controls, while focusing on functionality rather than styling or Eleventy basics.

### Source excerpt

A few months ago you might remember a tutorial I put out regarding remote caching in Eleventy. In this tutorial titled, Download and Cache YouTube Data in an Eleventy Website with Simple JavaScript, I... The post Add Pagination to Your Eleventy Static Generated Website in Minutes appeared first on The Polyglot Developer.