{"id":26502857,"url":"https://github.com/grassator/tpl-loader","last_synced_at":"2025-10-30T00:33:05.996Z","repository":{"id":24631792,"uuid":"28040963","full_name":"grassator/tpl-loader","owner":"grassator","description":null,"archived":false,"fork":false,"pushed_at":"2014-12-15T16:55:30.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T07:22:36.595Z","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/grassator.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":"2014-12-15T14:49:38.000Z","updated_at":"2016-01-10T11:19:27.000Z","dependencies_parsed_at":"2022-08-22T12:30:40.875Z","dependency_job_id":null,"html_url":"https://github.com/grassator/tpl-loader","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/grassator%2Ftpl-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Ftpl-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Ftpl-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grassator%2Ftpl-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grassator","download_url":"https://codeload.github.com/grassator/tpl-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244672079,"owners_count":20491300,"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":"2025-03-20T18:35:59.568Z","updated_at":"2025-10-30T00:33:05.949Z","avatar_url":"https://github.com/grassator.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lodash template for webpack\n\nLodash template loader for [webpack](http://webpack.github.io/). Uses `_.template` function to compile templates.\n\n## Installation\n\n`npm install tpl-loader`\n\n## Usage\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n``` javascript\nvar template = require(\"tpl!./file.html\");\n// =\u003e returns the template function compiled with undesrcore (lodash) templating engine.\n\n// And then use it somewhere in your code\ntemplate(data) // Pass object with data\n```\n\nYou can add `_.template` settings as a `tplSettings` property inside webpack config file to specify options for the loader, for example:\n\n``` javascript\n    ...\n    tplSettings: {\n        escape: /\\{\\{([^{].*?)\\}\\}/gm,\n        interpolate: /\\{\\{\\{(.+?)\\}\\}\\}/gm,\n        evaluate: /\\{\\%(.+?)\\%\\}/g\n    }\n    ...\n```\n\n## License\n\nMIT (http://www.opensource.org/licenses/mit-license.php)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Ftpl-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrassator%2Ftpl-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrassator%2Ftpl-loader/lists"}