{"id":20314576,"url":"https://github.com/dashpilot/edge-engine-old","last_synced_at":"2026-05-11T17:32:45.541Z","repository":{"id":184314334,"uuid":"671671673","full_name":"dashpilot/edge-engine-old","owner":"dashpilot","description":"Component-based template engine that compiles to ES Modules for fast rendering on the edge","archived":false,"fork":false,"pushed_at":"2023-08-25T16:18:00.000Z","size":2170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T08:45:14.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://edge-engine.vercel.app","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/dashpilot.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}},"created_at":"2023-07-27T21:41:59.000Z","updated_at":"2023-10-15T22:04:35.000Z","dependencies_parsed_at":"2023-10-16T13:26:03.902Z","dependency_job_id":"3c20f5b5-73e5-410a-b1c4-de6d2cf2ec31","html_url":"https://github.com/dashpilot/edge-engine-old","commit_stats":null,"previous_names":["dashpilot/edge-engine"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/dashpilot/edge-engine-old","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fedge-engine-old","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fedge-engine-old/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fedge-engine-old/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fedge-engine-old/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpilot","download_url":"https://codeload.github.com/dashpilot/edge-engine-old/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Fedge-engine-old/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32905902,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"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":[],"created_at":"2024-11-14T18:15:54.263Z","updated_at":"2026-05-11T17:32:45.524Z","avatar_url":"https://github.com/dashpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Edge Engine\n\nComponent-based template engine that compiles to ES Modules for fast rendering on the edge, server-side, static or client-side.\n\nBased on Patrick Pissurno's wonderful https://github.com/patrickpissurno/li-template.\n\n# About\n\nI was looking for a simple and fast template engine that would work with Vercel's Edge functions\n(which does not support filesystem operations or string-based template engines) and the most\nobvious choice was to use ES Module template literals. Creating a whole site as strings in ES Modules\nquickly becomes a drag, and that's when I stumbled across Patrick Pissurno's li-template which allows\nyou to write html files with simplified template literal syntax and compiles to CommonJS. I adapted it\nto compile to ES Modules so that you can easily use it with Edge Functions (SSR), in the browser (CSR)\nor prerendered (SSG). I also created a component-system, so you can easily import other components.\n\n# Syntax\n\nThe syntax is exactly the same as li-template (although I might add to it in the future):\n\n### Exists (not null)\n\n**Short-hand**\n\n`$(data.something?){\u003cb\u003e${data.something}\u003c/b\u003e}`\n\n**Transpiles into**\n\n`` ${data.something ? `\u003cb\u003e${data.something}\u003c/b\u003e` : ''} ``\n\n### Does not exist or empty\n\n**Short-hand**\n\n`$(!data.something?){\u003cb\u003eEmpty\u003c/b\u003e}`\n\n**Transpiles into**\n\n`` ${data.something == null || data.something.length === 0 ? `\u003cb\u003eEmpty\u003c/b\u003e` : ''} ``\n\n### Loops\n\n**Short-hand**\n\n`$(data.names:name){\u003cb\u003eI'm ${name}\u003c/b\u003e}`\n\n**Transpiles into**\n\n`` ${data.names.map(x =\u003e `\u003cb\u003eI'm ${x.name}\u003c/b\u003e`).join('')} ``\n\n## Basic syntax\n\nInside `${}` you can use whatever from Javascript you would like to. Functions, methods, properties, process.env... Whatever. Just keep in mind that whatever you do write in there, would have to work with plain `${}` template literals in Node.js module context.\n\n### String template (replace)\n\nThis one is just like plain ES6 template literals.\n\n`${data.something}`\n\nIt will be replaced at render time with _data.something_'s value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fedge-engine-old","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpilot%2Fedge-engine-old","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Fedge-engine-old/lists"}