{"id":15016572,"url":"https://github.com/web-alchemy/eleventy-plugin-twig","last_synced_at":"2026-02-08T22:01:53.620Z","repository":{"id":57700570,"uuid":"507774115","full_name":"web-alchemy/eleventy-plugin-twig","owner":"web-alchemy","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-08T07:14:35.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-21T11:53:26.315Z","etag":null,"topics":["eleventy","eleventy-plugin","template-engine","twig"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/web-alchemy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-27T05:26:51.000Z","updated_at":"2023-06-06T16:21:04.000Z","dependencies_parsed_at":"2025-01-02T12:38:22.122Z","dependency_job_id":"8e13df6c-330e-47de-8e02-beb3b130e299","html_url":"https://github.com/web-alchemy/eleventy-plugin-twig","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"8b4e4e6e421322f87d8e7adada182b1bf4523a83"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/web-alchemy/eleventy-plugin-twig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-twig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-twig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-twig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-twig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-alchemy","download_url":"https://codeload.github.com/web-alchemy/eleventy-plugin-twig/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-twig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29246420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T21:42:34.334Z","status":"ssl_error","status_checked_at":"2026-02-08T21:41:38.468Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["eleventy","eleventy-plugin","template-engine","twig"],"created_at":"2024-09-24T19:49:05.738Z","updated_at":"2026-02-08T22:01:53.580Z","avatar_url":"https://github.com/web-alchemy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eleventy Plugin for Twig\n\nThis plugin adds support for [Twig.js](https://github.com/twigjs/twig.js) template engine.\n\n## Installation\n\n```\nnpm install @web-alchemy/eleventy-plugin-twig \n```\n\n## Using\n\n```javascript\nconst TwigPlugin = require('@web-alchemy/eleventy-plugin-twig')\n\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(TwigPlugin, {\n    // here you can extend Twig (add your own filter, functions, tags, etc.).\n    // https://github.com/twigjs/twig.js/wiki/Extending-twig.js\n    // https://github.com/twigjs/twig.js/wiki/Extending-twig.js-With-Custom-Tags\n    init: async function (Twig) {\n      Twig.cache(false)\n    },\n\n    twigOptions: {\n      strictVariables: true,\n      autoescape: true,\n      allowInlineIncludes: true,\n      // https://github.com/twigjs/twig.js/wiki#namespaces\n      namespaces: {\n        includes: 'src/_includes',\n        layouts: 'src/_layouts',\n      }\n    },\n    \n    // here you can set a condition for skipping the template rendering\n    skipRenderCondition: async function (inputContent, inputPath, config) {\n      return false // function should return `true` for skipping\n    },\n  })\n}\n```\n\n## References\n- [Twig.js](https://github.com/twigjs/twig.js/)\n- [Twig template language reference](https://twig.symfony.com/)\n- [Another implementation of Eleventy Plugin for Twig](https://github.com/factorial-io/eleventy-plugin-twig)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-twig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-twig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-twig/lists"}