{"id":15021516,"url":"https://github.com/jmjuanes/electron-ejs","last_synced_at":"2025-10-29T05:31:27.459Z","repository":{"id":55533459,"uuid":"46859031","full_name":"jmjuanes/electron-ejs","owner":"jmjuanes","description":"Simple Electron plugin for rendering EJS templates","archived":false,"fork":false,"pushed_at":"2020-12-23T13:29:41.000Z","size":28,"stargazers_count":14,"open_issues_count":2,"forks_count":7,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-06T05:52:45.882Z","etag":null,"topics":["ejs","electron","electron-ejs","electron-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/electron-ejs","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/jmjuanes.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-11-25T12:01:14.000Z","updated_at":"2024-04-03T22:00:37.000Z","dependencies_parsed_at":"2022-08-15T02:40:46.527Z","dependency_job_id":null,"html_url":"https://github.com/jmjuanes/electron-ejs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjuanes%2Felectron-ejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjuanes%2Felectron-ejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjuanes%2Felectron-ejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmjuanes%2Felectron-ejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmjuanes","download_url":"https://codeload.github.com/jmjuanes/electron-ejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238777454,"owners_count":19528813,"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","electron","electron-ejs","electron-plugin"],"created_at":"2024-09-24T19:56:40.346Z","updated_at":"2025-10-29T05:31:26.500Z","avatar_url":"https://github.com/jmjuanes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# electron-ejs\n\n[![npm](https://img.shields.io/npm/v/electron-ejs.svg?style=flat-square)](https://www.npmjs.com/package/electron-ejs)\n[![npm](https://img.shields.io/npm/dt/electron-ejs.svg?style=flat-square)](https://www.npmjs.com/package/electron-ejs)\n[![npm](https://img.shields.io/npm/l/electron-ejs.svg?style=flat-square)](https://github.com/jmjuanes/electron-ejs)\n\nSimple Electron plugin for rendering EJS templates. It allows you to use `ejs` files in your electron projects.\n\n\n## Install\n\nInstall **electron-ejs** using NPM:\n\n```\nnpm install electron-ejs\n```\n\n## Usage\n\n```javascript\n//Import dependencies\nlet electron = require(\"electron\");\nlet electronEjs = require(\"electron-ejs\");\n\n//Initialize the app\nlet app = electron.app;\n\n//Initialize the ejs parser\nlet ejs = new electronEjs({\"key\": \"my value\"}, {});\n\n//Now you can read EJS files\napp.on(\"ready\", function () {\n    //Create the new window\n    mainWindow = new BrowserWindow({\n        \"width\": 800, \n        \"height\": 600\n    });\n\n    //More app configuration\n    // ....\n\n    //Load the ejs file\n    mainWindow.loadURL(\"file://\" + __dirname + \"/index.ejs\");\n});\n```\n\n## API\n\n### electronEjs(data, options)\n\nInitializes the `electron-ejs` parser. This can take the following arguments:\n\n#### data\n\nAn object with the data that will be used as a variable in your `ejs` file.\n\n#### options\n\nAn object with the `ejs` options. The list with all the options are available here: [https://github.com/mde/ejs#options](https://github.com/mde/ejs#options).\n\nThe `filename` options is not necessary and will be ignored.\n\n\n## Want to contribute?\n\nPull requests and issues are always welcome :)\n\n## Contributors\n\nSee the [full list](https://github.com/jmjuanes/electron-ejs/graphs/contributors) of contributors.\n\n\n## License\n\n[MIT](LICENSE) \u0026copy; Josemi Juanes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjuanes%2Felectron-ejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmjuanes%2Felectron-ejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmjuanes%2Felectron-ejs/lists"}