{"id":16983801,"url":"https://github.com/arturguedes/minimalreplace","last_synced_at":"2026-01-18T12:44:21.924Z","repository":{"id":57136148,"uuid":"158643584","full_name":"ArturGuedes/MinimalReplace","owner":"ArturGuedes","description":"Keep the HTML super clean, dynamically insert to content into your HTML and generate a unified file with Minimal Replace.","archived":false,"fork":false,"pushed_at":"2023-03-18T08:37:33.000Z","size":28,"stargazers_count":5,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T03:09:58.259Z","etag":null,"topics":["brackets","brackets-extension","livepreview"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArturGuedes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-22T04:46:51.000Z","updated_at":"2023-05-09T22:18:53.000Z","dependencies_parsed_at":"2022-09-03T15:01:50.785Z","dependency_job_id":null,"html_url":"https://github.com/ArturGuedes/MinimalReplace","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturGuedes%2FMinimalReplace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturGuedes%2FMinimalReplace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturGuedes%2FMinimalReplace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturGuedes%2FMinimalReplace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArturGuedes","download_url":"https://codeload.github.com/ArturGuedes/MinimalReplace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510002,"owners_count":21116131,"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":["brackets","brackets-extension","livepreview"],"created_at":"2024-10-14T02:29:22.675Z","updated_at":"2026-01-18T12:44:21.905Z","avatar_url":"https://github.com/ArturGuedes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n    Minimal Replace\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eA lightweight templating solution for HTML that enables dynamic content insertion using a simple \u003ccode\u003e{{::variable}}\u003c/code\u003e syntax. Keep your HTML clean and maintainable by separating content from structure.\u003c/h4\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://registry.brackets.io/\"\u003e\u003cimg src=\"https://img.shields.io/badge/dynamic/json?url=http://registry.brackets.s3.amazonaws.com/registry.json\u0026label=Version\u0026query=$['arturguedes.replace']['metadata']['version']\u0026color=blueviolet\" alt=\"Minimal Replace version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://registry.brackets.io/\"\u003e\u003cimg src=\"https://img.shields.io/badge/dynamic/json?url=http://registry.brackets.s3.amazonaws.com/registry.json\u0026label=Downloads\u0026query=$['arturguedes.replace']['totalDownloads']\u0026color=blue\" alt=\"Minimal Replace downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Features\n\n- **Simple Syntax**: Use `{{::variable}}` to insert dynamic content\n- **Clean Separation**: Keep HTML structure separate from content data\n- **Multiple Usage Options**: CDN for live preview or Brackets extension for unified file generation\n- **HTML Support**: Accepts HTML expressions within variable values\n- **Lightweight**: Minimal overhead for maximum performance\n\n## Installation \u0026 Usage\n\n### Basic Syntax\n\nVariables are defined using the `{{::variableName}}` syntax and replaced with corresponding values from the JavaScript data object:\n\n```html\n\u003cdiv class=\"card\"\u003e\n  \u003ch1\u003eI'm {{::name}}\u003c/h1\u003e\n  \u003ch2\u003efrom {{::planet}}\u003c/h2\u003e\n\u003c/div\u003e\n```\n\n### Option 1: CDN (Live Preview)\n\nFor dynamic content replacement in the browser, add the following scripts to your HTML `\u003cbody\u003e`:\n\n```html\n\u003cscript\u003e\n  mr_data = {\n    name: \"Arthur Phillip Dent\",\n    planet: \"Earth\",\n  };\n\u003c/script\u003e\n\u003cscript src=\"https://arturguedes.github.io/minimal-replace/js/minimalreplace.min.js\"\u003e\u003c/script\u003e\n```\n\n### Option 2: Brackets Extension (Unified File Generation)\n\nThe Brackets extension generates a unified HTML file by processing your templates and data files.\n\n1. Install the Minimal Replace extension in Adobe Brackets\n2. Use `Minimal \u003e Setup Minimal Replace structure` to create the project structure\n3. Define your data in JavaScript files with the same name as your HTML templates\n\n#### Project Structure\n\n```\n.\n├── mr-structure/\n│   ├── example.html        # Template with {{::variable}} syntax\n│   ├── example.js          # Data file with mr_data object\n│   └── ...\n├── example.html            # Generated unified HTML file\n└── ...\n```\n\n## Important Notes\n\n- The `mr_data` object supports HTML expressions within variable values\n- When using HTML with quotes, escape internal quotes with backslashes:\n  ```javascript\n  mr_data = {\n    link: '\u003ca href=\"#\"\u003eLink\u003c/a\u003e',\n  };\n  ```\n\n## License\n\nThis project is licensed under the [GNU General Public License v3.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturguedes%2Fminimalreplace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farturguedes%2Fminimalreplace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturguedes%2Fminimalreplace/lists"}