{"id":13671368,"url":"https://github.com/bazilio91/ejs-compiled-loader","last_synced_at":"2025-04-04T21:08:46.887Z","repository":{"id":22348055,"uuid":"25683935","full_name":"bazilio91/ejs-compiled-loader","owner":"bazilio91","description":"EJS loader for webpack (without frontend dependencies)","archived":false,"fork":false,"pushed_at":"2023-03-04T17:52:11.000Z","size":448,"stargazers_count":126,"open_issues_count":27,"forks_count":72,"subscribers_count":3,"default_branch":"3.x","last_synced_at":"2025-03-28T20:08:21.497Z","etag":null,"topics":["ejs","ejs-loader","webpack"],"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/bazilio91.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2014-10-24T10:48:15.000Z","updated_at":"2024-01-11T08:43:44.000Z","dependencies_parsed_at":"2024-01-14T17:03:43.061Z","dependency_job_id":"7e98ae91-6c21-4ded-91d0-9869eb1cd366","html_url":"https://github.com/bazilio91/ejs-compiled-loader","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazilio91%2Fejs-compiled-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazilio91%2Fejs-compiled-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazilio91%2Fejs-compiled-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bazilio91%2Fejs-compiled-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bazilio91","download_url":"https://codeload.github.com/bazilio91/ejs-compiled-loader/tar.gz/refs/heads/3.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249526,"owners_count":20908212,"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":["ejs","ejs-loader","webpack"],"created_at":"2024-08-02T09:01:07.704Z","updated_at":"2025-04-04T21:08:46.871Z","avatar_url":"https://github.com/bazilio91.png","language":"JavaScript","readme":"# ejs-compiled-loader for webpack\n\nEJS loader for [webpack](http://webpack.github.io/). Uses [ejs](https://github.com/mde/ejs) function to compile templates.\n\nTo use [EJS by tj](https://github.com/tj/ejs) use 1.x branch and 1.x.x versions.\n\n## Installation\n\n`npm install ejs-compiled-loader`\n\n## Usage\n\n[Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html)\n\n``` javascript\nvar template = require(\"ejs-compiled-loader!./file.ejs\");\n// =\u003e returns the template function compiled with ejs templating engine.\n\n// And then use it somewhere in your code\ntemplate(data) // Pass object with data\n\n// Child Templates\n// path is relative to where webpack is being run\n\u003c%- include templates/child -%\u003e\n```\n\n## Options\n\nFollowing options can be specified in query:\n\n`beautify` — enable or disable terser beautify of template ast\n\n`compileDebug` — see ejs compileDebug option\n\n`htmlmin` — see [htmlminify section](#htmlminify)\n\n## htmlminify\n\n```javascript\nmodule: {\n  rules: [{\n    test: /\\.ejs$/, \n    use: {\n      loader: 'ejs-compiled-loader',\n      options: {\n        htmlmin: true,\n        htmlminOptions: {\n          removeComments: true\n        }\n      }\n    }\n  }]\n}\n```\n\nSee [all options reference](https://github.com/kangax/html-minifier#options-quick-reference)\n\n## License\n\nMIT (http://www.opensource.org/licenses/mit-license.php)\n\n\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazilio91%2Fejs-compiled-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbazilio91%2Fejs-compiled-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbazilio91%2Fejs-compiled-loader/lists"}