{"id":15486406,"url":"https://github.com/ianfabs/frenchie","last_synced_at":"2026-05-07T11:34:30.899Z","repository":{"id":96801823,"uuid":"238231182","full_name":"ianfabs/frenchie","owner":"ianfabs","description":"A tiny and very crude pastiche of mustache templating for deno. Not recommended for production.","archived":false,"fork":false,"pushed_at":"2020-03-02T02:02:16.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T07:14:59.946Z","etag":null,"topics":["deno","javascript","template-engine","typescript"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ianfabs.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":"2020-02-04T14:53:05.000Z","updated_at":"2020-03-02T02:02:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"978698d6-b0af-40b5-a48c-236ac932bb8e","html_url":"https://github.com/ianfabs/frenchie","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"c509c73643275ffd23ccefa4e3f23a4364c7543a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ianfabs/frenchie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfabs%2Ffrenchie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfabs%2Ffrenchie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfabs%2Ffrenchie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfabs%2Ffrenchie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianfabs","download_url":"https://codeload.github.com/ianfabs/frenchie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianfabs%2Ffrenchie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["deno","javascript","template-engine","typescript"],"created_at":"2024-10-02T06:08:15.672Z","updated_at":"2026-05-07T11:34:30.881Z","avatar_url":"https://github.com/ianfabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Frenchie\nA tiny and very crude pastiche of mustache templating for deno. Not recommended  for production.\n\n## Usage\nWith a string\n```ts\nimport { parse } from \"https://deno.land/x/frenchie/mod.ts\";\n\nconst template = \"\u003ch1\u003eHello there, {{name}}\u003c/h1\u003e\";\nparse(template, {name: \"Wes Bos\"}); // =\u003e \"\u003ch1\u003eHello there, Wes Bos\u003c/h1\u003e\"\n```\nWith a file:\n\n*index.hbs*\n```hbs\n\u003ch1\u003eHello there, {{name}}\u003c/h1\u003e\n```\n\n*app.ts*\n```ts\nimport { parse } from \"https://deno.land/x/frenchie/mod.ts\";\nimport { readFileStrSync } from \"https://deno.land/std/fs/mod.ts\";\n\nlet file = readFileStrSync(Deno.cwd() + \"index.hbs\", {encoding: 'utf8'});\n\nparse(file, {name: \"Ry\"}) // =\u003e \"\u003ch1\u003eHello there, Ry\u003c/h1\u003e\"\n```\n\n## Concepts\n\nThere are two basic concepts to try and mimic hbs as lazily as possible: **blocks** and **void blocks**.\n\n### Blocks\nA block is any `{{}}` region that *will* return a value.\n\n### Void Blocks\nA **void** block is a block that *does not* return anything, beause it's encasing function is `void`.\nThese blocks are created by writing `{{#}}` with whatever you would like after the `#`. Technically, because I'm a terrible programmer,\nyou could also return code from these blocks. Maybe I'll fix that, or maybe I'll just call it a feature.\n\n## Security Concerns\nTo make things easier on myself, I used an insecure feature of javascript. It made writing this code a ***lot** easier. I do have plans to think of a way around this limitation in the future. Currently, I don't know any better methods for accomplishing this, so any support is greatly appreciated.\n\n## Neat Examples\n```hbs\n{{# egg = true }}\n{{egg}}\n```\n\n```hbs\n{{#if (1 \u003c 2) return \"fish\"; }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianfabs%2Ffrenchie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianfabs%2Ffrenchie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianfabs%2Ffrenchie/lists"}