{"id":13775083,"url":"https://github.com/chrisdothtml/rollup-plugin-dustjs","last_synced_at":"2025-04-12T22:44:33.115Z","repository":{"id":65491292,"uuid":"85794576","full_name":"chrisdothtml/rollup-plugin-dustjs","owner":"chrisdothtml","description":"A rollup plugin for importing dustjs templates as modules","archived":false,"fork":false,"pushed_at":"2017-03-25T08:48:28.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T22:44:26.795Z","etag":null,"topics":["dustjs","rollup","rollup-plugin","yarn"],"latest_commit_sha":null,"homepage":"https://npm.im/rollup-plugin-dustjs","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/chrisdothtml.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":"2017-03-22T06:50:39.000Z","updated_at":"2022-12-11T11:17:14.000Z","dependencies_parsed_at":"2023-01-25T18:45:19.502Z","dependency_job_id":null,"html_url":"https://github.com/chrisdothtml/rollup-plugin-dustjs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Frollup-plugin-dustjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Frollup-plugin-dustjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Frollup-plugin-dustjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrisdothtml%2Frollup-plugin-dustjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrisdothtml","download_url":"https://codeload.github.com/chrisdothtml/rollup-plugin-dustjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643048,"owners_count":21138353,"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":["dustjs","rollup","rollup-plugin","yarn"],"created_at":"2024-08-03T17:01:33.666Z","updated_at":"2025-04-12T22:44:33.093Z","avatar_url":"https://github.com/chrisdothtml.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Templating"],"readme":"# rollup-plugin-dustjs\n\n\u003e A [rollup](https://github.com/rollup/rollup) plugin for importing dustjs templates as modules\n\n## Install\n\n```bash\nyarn add --dev rollup-plugin-dustjs\n\n# npm works too\nnpm install --save-dev rollup-plugin-dustjs\n```\n\n**rollup.config.js**\n\n```javascript\nimport dustjs from 'rollup-plugin-dustjs'\n\nexport default {\n  // ...\n  plugins: [\n    dustjs()\n  ]\n}\n```\n\n### Options\n\n#### whitespace\n\nPreserves whitespace in templates\n\nType: `Boolean`\n\nDefault: `false`\n\n## Use\n\n### Import\n\n```javascript\nimport main from './main.dust'\nimport { render } from 'dustjs-linkedin'\n\nrender(main, {}, (error, output) =\u003e {\n  // ...\n})\n```\n\n### Partials\n\n**main.dust**\n\n```\n\u003cdiv class=\"box\"\u003e\n  {\u003e\"./heading.dust\"/}\n  \u003cp\u003e...\u003c/p\u003e\n\u003c/div\u003e\n```\n\n**heading.dust**\n\n```\n\u003ch1\u003eMy heading\u003c/h1\u003e\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdothtml%2Frollup-plugin-dustjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrisdothtml%2Frollup-plugin-dustjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrisdothtml%2Frollup-plugin-dustjs/lists"}