{"id":21421410,"url":"https://github.com/percival33/templating","last_synced_at":"2026-05-15T12:02:09.984Z","repository":{"id":179183653,"uuid":"663012519","full_name":"Percival33/templating","owner":"Percival33","description":"Templating exploration using mustache.js","archived":false,"fork":false,"pushed_at":"2023-07-06T13:30:30.000Z","size":43,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T06:44:58.281Z","etag":null,"topics":["nodejs","template"],"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/Percival33.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-07-06T11:12:48.000Z","updated_at":"2023-07-06T13:39:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"6001fe01-1a7b-4463-b4ef-572746b8a291","html_url":"https://github.com/Percival33/templating","commit_stats":null,"previous_names":["percival33/templating"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percival33%2Ftemplating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percival33%2Ftemplating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percival33%2Ftemplating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Percival33%2Ftemplating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Percival33","download_url":"https://codeload.github.com/Percival33/templating/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926072,"owners_count":20369910,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nodejs","template"],"created_at":"2024-11-22T20:34:08.732Z","updated_at":"2026-05-15T12:02:04.958Z","avatar_url":"https://github.com/Percival33.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mustache.js Templating Exploration\n\nThis repository is a simple exploration of Mustache.js, a logic-less templating system in JavaScript. The goal is to understand how to create dynamic templates with Mustache.js.\n\n## Overview\n\nIn this project, I use Mustache.js to generate a Mongoose schema from a JSON data file.\n\nThe `render.js` file reads the JSON data, uses Mustache.js to render a template, and then outputs a new JavaScript file.\n\nI also have Jest unit tests in place to ensure the rendering process works correctly.\n\n## Example\n\n```shell\nnpm start render reviewData\n\n\u003e templating@1.0.0 start\n\u003e node render.js render reviewData\n\nRendered template!\n```\n\n## Running the Project\n\n1. After cloning the repository, navigate into the project directory and run:\n\n```shell\nnpm install\n```\n\n2. Prepare your own data files and place them inside the `data` directory.\n\n3. To render a template, type:\n\n```shell\nnpm start render {name_of_your_data.json_file}\n```\n\nReplace `{name_of_your_data.json_file}` with the name of your JSON file (without the `.json` extension).\n\n4. That's it! Your rendered template will be output as a new JavaScript file in `output` directory\n\nFeel free to clone this repository and experiment with your own data and templates!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercival33%2Ftemplating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpercival33%2Ftemplating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpercival33%2Ftemplating/lists"}