{"id":15656607,"url":"https://github.com/jaisonerick/ngtemplatemaker","last_synced_at":"2026-04-25T05:35:26.271Z","repository":{"id":27196822,"uuid":"30667191","full_name":"jaisonerick/ngTemplateMaker","owner":"jaisonerick","description":"An HTML generator using a external html template and scope variables","archived":false,"fork":false,"pushed_at":"2015-02-11T21:03:27.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T21:16:03.309Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaisonerick.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":"2015-02-11T20:05:47.000Z","updated_at":"2015-04-21T22:59:49.000Z","dependencies_parsed_at":"2022-08-17T17:15:10.526Z","dependency_job_id":null,"html_url":"https://github.com/jaisonerick/ngTemplateMaker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2FngTemplateMaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2FngTemplateMaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2FngTemplateMaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaisonerick%2FngTemplateMaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaisonerick","download_url":"https://codeload.github.com/jaisonerick/ngTemplateMaker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242164949,"owners_count":20082394,"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":[],"created_at":"2024-10-03T13:03:22.074Z","updated_at":"2026-04-25T05:35:26.207Z","avatar_url":"https://github.com/jaisonerick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# angular-template-maker\n\nSimplify HTML creation from file templates using Angular $compile.\n\nUse it with moderation, only where you MUST use plain HTML strings. If you can,\ntry to use directives to achieve your goal.\n\n## Installation\n\nYou can install angular-template-maker with bower:\n\n\u003e bower install angular-template-maker\n\nThen import the script in your HTML file:\n\n````html\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cscript src=\"angular.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"angular-template-maker.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"app.js\"\u003e\u003c/script\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n````\n\nAnd finally declare the dependency in you main application file:\n\n````javascript\nangular.module('myApp', [ 'ngTemplateMaker' ]);\n````\n\n## Usage\n\nJust inject the service and call the function using the html template\nlocation and a data object. The service returns a promise resolved with\na parsed HTML string.\n\n````javascript\napp.controller(\"demoCtrl\", ['$scope', 'ngTemplateMaker', function($scope, ngTemplateMaker) {\n  var data = {\n    example: 'Variable Contents',\n    name: 'John Doe'\n  };\n  ngTemplateMaker('views/template.html', data).then(function(html) {\n    // use it with where you MUST use just pure HTML strings.\n  });\n}]);\n````\nAssuming that the *views/template.html* file is like the following:\n\n````html\n\u003cdiv\u003e\n  \u003cstrong\u003eName: \u003c/strong\u003e{{ name }}\u003cbr /\u003e\n  \u003cstrong\u003eExample: \u003c/strong\u003e{{ example }}\u003cbr /\u003e\n\u003c/div\u003e\n````\n\nYour parsed HTML will be:\n\n````html\n\u003cdiv\u003e\n  \u003cstrong\u003eName: \u003c/strong\u003eJohn Doe\u003cbr /\u003e\n  \u003cstrong\u003eExample: \u003c/strong\u003eVariable Contents\u003cbr /\u003e\n\u003c/div\u003e\n````\n\n# License\nCopyright (C) 2015 Jaison Erick\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaisonerick%2Fngtemplatemaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaisonerick%2Fngtemplatemaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaisonerick%2Fngtemplatemaker/lists"}