{"id":23265263,"url":"https://github.com/bwin/coffee-in-vue-templates-loader","last_synced_at":"2026-05-10T16:04:19.130Z","repository":{"id":34923744,"uuid":"190902129","full_name":"bwin/coffee-in-vue-templates-loader","owner":"bwin","description":"Webpack-loader to use coffeescript in vue templates as attributes or interpolations.","archived":false,"fork":false,"pushed_at":"2023-01-06T01:53:28.000Z","size":609,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-14T02:41:48.222Z","etag":null,"topics":["coffeescript","vue"],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/bwin.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":"2019-06-08T15:12:10.000Z","updated_at":"2024-06-18T23:23:00.000Z","dependencies_parsed_at":"2023-01-15T10:30:43.433Z","dependency_job_id":null,"html_url":"https://github.com/bwin/coffee-in-vue-templates-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/bwin%2Fcoffee-in-vue-templates-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fcoffee-in-vue-templates-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fcoffee-in-vue-templates-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bwin%2Fcoffee-in-vue-templates-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bwin","download_url":"https://codeload.github.com/bwin/coffee-in-vue-templates-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247446266,"owners_count":20940064,"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":["coffeescript","vue"],"created_at":"2024-12-19T15:18:20.340Z","updated_at":"2026-05-10T16:04:14.085Z","avatar_url":"https://github.com/bwin.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\r\n# coffee-in-vue-templates-loader [CIVTL]\r\n\r\n| Webpack-loader to use coffeescript in vue templates as attributes or interpolations.\r\n\r\n- [Installation](#installation)\r\n- [Example usage](#example-usage)\r\n- [Webpack configuration](#webpack-configuration)\r\n  - [With nuxt](#with-nuxt)\r\n\r\n## Installation\r\n\r\n```sh\r\nyarn add --dev coffee-in-vue-templates-loader\r\n```\r\n\r\n## Example usage\r\n\r\n### Example usage with `pug` (as intended):\r\n```vue\r\n\u003ctemplate lang=\"pug\"\u003e\r\n\tdiv(:class=\"active: i is 2\" @click=\"fn item, something: yes\") {{ $t 'buttons.ok' }}\r\n\u003c/template\u003e\r\n```\r\n\r\n### Same example with just html:\r\n```vue\r\n\u003ctemplate\u003e\r\n\t\u003cdiv :class=\"active: i is 2\" @click=\"fn item, something: yes\"\u003e{{ $t 'buttons.ok' }}\u003c/div\u003e\r\n\u003c/template\u003e\r\n```\r\n\r\n### Both would get transpiled to:\r\n```vue\r\n\u003ctemplate\u003e\r\n\t\u003cdiv :class=\"{ active: i === 2 }\" @click=\"fn(item, { something: true })\"\u003e{{ $t('buttons.ok') }}\u003c/div\u003e\r\n\u003c/template\u003e\r\n```\r\n\r\n## Webpack configuration\r\n\r\n### With `nuxt`\r\n\r\nFor example to use with `pug`, put the following in `nuxt.config.coffee`:\r\n```coffee\r\n[...]\r\n\tbuild:\r\n\t\textend: (config, ctx) -\u003e\r\n\t\t\tconfig.module.rules.push\r\n\t\t\t\ttest: /\\.pug$/\r\n\t\t\t\tuse: ['coffee-in-vue-templates-loader', 'pug-plain-loader']\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwin%2Fcoffee-in-vue-templates-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbwin%2Fcoffee-in-vue-templates-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbwin%2Fcoffee-in-vue-templates-loader/lists"}