{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/14"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/8"}],"enrichment":{"capability":"Extends Copier's Jinja2 templating with a loader that imports custom extensions from file paths relative to your template root, rather than requiring Python dotted module paths.","skillfed_tags":["copier-plugin","jinja2-extension","template-authoring"],"use_cases":["Add custom Jinja filters (like slugify) to a Copier template without publishing them as a separate package.","Compute derived context variables during template rendering based on user answers (e.g., inferring module names from project type).","Organize template logic into separate Python modules within the template directory for readability and maintainability.","Implement template-specific hooks that run during different Copier phases (prompting, rendering, tasks, migrations) to validate or transform context.","Avoid ugly Jinja macro imports or inline context updates in template filenames by centralizing logic in Python extension classes."],"what_it_does":"Copier Template-Extensions is a Jinja2 extension for Copier that lets you define custom template extensions as Python files stored in your template directory, then reference them by relative file path instead of Python module dotted notation. This is particularly useful for template authors who want to add custom filters, tests, or context manipulation without requiring users to install separate Python packages or manage complex module paths.\n\nThe package provides two main features: a TemplateExtensionLoader that resolves file-path-based extension references, and a ContextHook base class that simplifies adding or modifying template context variables during rendering. This is helpful when you want to compute derived values (like converting a project type into a module name) or apply transformations without cluttering template filenames with Jinja macros or inline logic.","worth_installing":"Yes, if you are authoring Copier templates and want to add custom Jinja logic without publishing separate packages. The low install friction, permissive license, and typed codebase make it safe to adopt. The 395-day maintenance gap is a minor concern for a stable, narrowly-scoped utility, but verify that it aligns with your Copier version before committing to a large template project."},"id":"copier-template-extensions","links":{"html":"https://skillfed.io/packages/copier-template-extensions","md":"https://skillfed.io/packages/copier-template-extensions.md","pypi":"https://pypi.org/project/copier-template-extensions/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-07-15","license_spdx":"ISC","license_treatment":"permissive","name":"copier-template-extensions","python_support":"supports_current","summary":"Special Jinja2 extension for Copier that allows to load extensions using file paths relative to the template root instead of Python dotted paths."},"popularity":{"monthly_downloads":184030,"position":10050,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.3"}
