{"id":15163047,"url":"https://github.com/web-alchemy/eleventy-plugin-edgejs","last_synced_at":"2026-02-07T23:34:36.670Z","repository":{"id":57700569,"uuid":"507790430","full_name":"web-alchemy/eleventy-plugin-edgejs","owner":"web-alchemy","description":null,"archived":false,"fork":false,"pushed_at":"2023-06-09T09:40:43.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T16:34:03.601Z","etag":null,"topics":["edgejs","eleventy","eleventy-plugin","template-engine"],"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-27T06:33:51.000Z","updated_at":"2024-12-17T16:54:25.000Z","dependencies_parsed_at":"2024-09-27T02:02:48.333Z","dependency_job_id":"f532e678-0013-4526-8e06-97c103a40224","html_url":"https://github.com/web-alchemy/eleventy-plugin-edgejs","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"8a0ff7215b83a0386d400f69a7f410aba87e1e1f"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/web-alchemy/eleventy-plugin-edgejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-edgejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-edgejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-edgejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-edgejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-alchemy","download_url":"https://codeload.github.com/web-alchemy/eleventy-plugin-edgejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-alchemy%2Feleventy-plugin-edgejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29212731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:14:30.912Z","status":"ssl_error","status_checked_at":"2026-02-07T23:14:17.253Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["edgejs","eleventy","eleventy-plugin","template-engine"],"created_at":"2024-09-27T02:02:40.207Z","updated_at":"2026-02-07T23:34:36.653Z","avatar_url":"https://github.com/web-alchemy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Eleventy Plugin that adds support Edge.js template engine\n\nThis plugin allows to use [Edge.js](https://github.com/edge-js/edge/) as template engine for [Eleventy](https://11ty.dev).\n\n## Installation\n\n```\nnpm install @web-alchemy/eleventy-plugin-edgejs\n```\n\n## Usage\n\n```javascript\nconst EdgeJsPlugin = require('@web-alchemy/eleventy-plugin-edgejs')\n\nmodule.exports = function (eleventyConfig) {\n  eleventyConfig.addPlugin(EdgeJsPlugin, {\n    // you can extend current edge instance\n    extendEdgeInstance: async function (edge, eleventyUserConfig) {\n      edge.global('version', '1.0.0')\n\n      edge.registerTag({\n        block: false,\n        seekable: true,\n        tagName: 'rawInclude',\n        compile (parser, buffer, token) {\n          const fileName = token.properties.jsArg.trim()\n          const fullPath = path.join(process.cwd(), eleventyUserConfig.dir.input, fileName)\n          const fileContent = fs.readFileSync(fullPath, 'utf-8')\n          buffer.outputRaw(fileContent)\n        }\n      })\n    },\n\n    // ... or create own new edge instance\n    createEdgeInstance: async function(eleventyUserConfig) {\n      const { Edge } = require('edge.js')\n      \n      const edge = new Edge({\n        cache: false\n      })\n      \n      const { dir } = eleventyUserConfig\n\n      edge.mount(path.join(cwd, dir.input))\n      edge.mount('includes', path.join(cwd, dir.input, dir.includes))\n      \n      return edge\n    },\n\n    // optional condition for skipping template rendering\n    skipRenderCondition: function (inputContent, inputPath) {\n      return inputPath.includes('components')\n    }\n  })\n}\n```\n\nIf options has `createEdgeInstance` function, then `extendEdgeInstance` will be ignored.\n\n## Links\n- [Edge.js Github Repo](https://github.com/edge-js/edge/)\n- [Edge.js docs](https://docs.adonisjs.com/guides/views/introduction)\n- [Edge.js references](https://docs.adonisjs.com/reference/views/globals/inspect)\n- [Eleventy](https://11ty.dev)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-edgejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-edgejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-alchemy%2Feleventy-plugin-edgejs/lists"}