{"id":22800001,"url":"https://github.com/dadi/dustjs-helpers","last_synced_at":"2025-04-30T19:33:47.096Z","repository":{"id":57105404,"uuid":"56354969","full_name":"dadi/dustjs-helpers","owner":"dadi","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-09T01:47:03.000Z","size":64,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-04-25T20:04:25.114Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dadi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-15T23:16:40.000Z","updated_at":"2019-01-02T22:32:38.000Z","dependencies_parsed_at":"2022-08-21T03:00:34.508Z","dependency_job_id":null,"html_url":"https://github.com/dadi/dustjs-helpers","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Fdustjs-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Fdustjs-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Fdustjs-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadi%2Fdustjs-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dadi","download_url":"https://codeload.github.com/dadi/dustjs-helpers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246365644,"owners_count":20765549,"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":"2024-12-12T07:10:46.269Z","updated_at":"2025-03-30T19:17:38.913Z","avatar_url":"https://github.com/dadi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DADI Dust.js helpers\n\n[![npm (scoped)](https://img.shields.io/npm/v/@dadi/dustjs-helpers.svg?maxAge=10800\u0026style=flat-square)](https://www.npmjs.com/package/@dadi/dustjs-helpers)\n[![coverage](https://img.shields.io/badge/coverage-78%25-yellow.svg?style=flat?style=flat-square)](https://github.com/dadi/dustjs-helpers)\n[![Build Status](https://travis-ci.org/dadi/dustjs-helpers.svg?branch=master)](https://travis-ci.org/dadi/dustjs-helpers)\n[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](http://standardjs.com/)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat-square)](https://github.com/semantic-release/semantic-release)\n\n\u003e A collection of Dust.js helpers used in DADI+ projects.\n\n## Install\n\n```\nnpm install @dadi/dustjs-helpers --save\n```\n\n## Load the helpers\n\n```js\n/* app/utils/helpers/loader.js */\n\n// first, a reference to the loaded pages and routes within your application\nvar components = require('@dadi/web').Components\n\n// also, a reference to the Dust template module inside DADI Web\nvar dust = require('@dadi/web').Dust\n\n// Load DADI helpers\nrequire('@dadi/dustjs-helpers')(dust.getEngine(), { components: components })\n```\n\n## More helpers\n\nWe also recommend including the common DustJS helpers from https://github.com/rodw/common-dustjs-helpers.\n\n```\nnpm install common-dustjs-helpers --save\n```\n\nAdd the following to your `loader.js` file\n\n```js\n// Load common-dustjs-helpers\nvar commonDustHelpers = require('common-dustjs-helpers')\nnew commonDustHelpers.CommonDustjsHelpers().export_helpers_to(dust.getEngine())\n```\n\n## Development\n\n1. Clone this repository\n2. Make your changes to `dadi-dustjs-helpers.js`\n3. Add your tests to `test/test.js`\n4. Run test suite\n\n   ```\n   npm test\n   ```\n5. Build minified file\n\n   ```\n   npm run build\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadi%2Fdustjs-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadi%2Fdustjs-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadi%2Fdustjs-helpers/lists"}