{"_id":"hapi-named-routes","_rev":"31-2d567dcb806b928bec32a5433fa13ff7","name":"hapi-named-routes","description":"Hapi plugin to add named routes to your view templates","dist-tags":{"latest":"1.0.1"},"versions":{"0.0.1":{"name":"hapi-named-routes","version":"0.0.1","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.1","dist":{"shasum":"cf39f460d46b1ff2e91c6a6e4e51cdf3da8f7697","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.1.tgz","integrity":"sha512-uZ96CLkb1qJxIArS5igHvqdkhSgvKZ4rGK3sttfRXNWs/dyY9KlDwp6n+S9ijL0PzfBkCVisohywOw51avBhug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJJvVUp9/JIB+LJFoztYid+BWxDjRNFycxI7Pljzf6cQIhALPQtfLkrJOEhsBMB8vJY/1OgoeAT2c2kpbEpHRv5svA"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.0.2":{"name":"hapi-named-routes","version":"0.0.2","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.2","dist":{"shasum":"16c64a203cc15b1b044f5142fb7b9ec927b560da","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.2.tgz","integrity":"sha512-rqPzBGtZruUzbuRc/EU6FSu5WccjFmhHptV0m3pNdJFsefJvm2fKYIKn+Ph5iPpGwsJUQMrinIpsbqbmR9HLmg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCI5geKv9oAnXtoNpGwRB4BS8xAJUDhKk6r0ax0cXV0IAIhALtYvS1QPt74SVWyWiH/zXzE0SnCazI3qQ84XyL+1XSl"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.0.3":{"name":"hapi-named-routes","version":"0.0.3","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.3","dist":{"shasum":"d01927b2871ad6597670a15343528dadb9747332","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.3.tgz","integrity":"sha512-XI31UzUj5iQNT5WnE08MKNU8U07dvllpOXpS9qRLcvCpXl4Cj77dDnpSebBMjIyIFMtTR6gJbfxTqcQcuNiWEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOdM5unPXGACZHmTKRkKdgZQ8pIBHKFOwQpn/QjkSC2gIgc2hol9VqDdxhP9ltEUHD2NHg5Itp7p0FOUTgudEwwO4="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.0.4":{"name":"hapi-named-routes","version":"0.0.4","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.4","dist":{"shasum":"d4273966c82d7b908afea99861838abf6bf63e8a","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.4.tgz","integrity":"sha512-h5vvzGQLsPxGtYOqdEBvrENghjYV1YpSYGIkfQfda0NG0I10SF+XMax0IpDZg2RaC33Enoot+nsxc5qphHQaTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDL+CA+2HU65kf9EdmhYg4gGOM34d3JDe5tQx+HRK2OPAiBEu88+NKsubWNs1WS88V/5uGJ2RqwEeXuSKB4DTAkXNA=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.0.5":{"name":"hapi-named-routes","version":"0.0.5","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.5","dist":{"shasum":"4c484bace816b2fbcf1fe1983b1964d014e13972","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.5.tgz","integrity":"sha512-RJDbvI30zxP/TB9TZeaCbfGyVAqZkO8lkeph6WIN9zB/O93WLkrri3paJaRf7ww2+BTNqWCppEoRrqvSVW3wPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCaR86rCYz3MLlFZSwrpVEykRtdVvHlifou7f3Z+D7H7QIhAPzIuJGsLyXCNn4PyzqoQkQL6DofmoEJBLIZVfCIsgOv"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.0.6":{"name":"hapi-named-routes","version":"0.0.6","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.0.6","dist":{"shasum":"ac875c6542c91024e6b521f2b891502d57ecaff6","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.0.6.tgz","integrity":"sha512-2A67cMUSYiyLZ1zJwmfYvpK1l0vzOtj0uBij705cHhzlSk9jKSjZn4K5VSOZokqM8D+CLs16tscCn5OBBD3l6g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIuN5mBwHPr80nBMiNwXlwVMcHdcz14Qgb+bKmlH2JHAIhAMj5dxRvHX3aPINVvN2fVW+azLJMi0+4CTMXA9bPRQna"}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.1.0":{"name":"hapi-named-routes","version":"0.1.0","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.1.0","dist":{"shasum":"711db617e1cdafb195b798a1043805b736e2a1b2","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.1.0.tgz","integrity":"sha512-N/IHgOOfh0L6OIIpqX9SKxqCNbZY7G0Uun5sWC+UiUPHUkhFDGUMkGnlAyNJqlvvaHf9/QfoGZl21NSZ5kdO7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDcFLRba4xjsOhiuuzI9AkV6cKJcs0OegC5TdLT7DEmsAiBP7lU2txb+whNW2xglllPUwX1ttGdqCG7wHBNScRT6/g=="}]},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.1.1":{"name":"hapi-named-routes","version":"0.1.1","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.1.1","dist":{"shasum":"373b61722786ddc34c2d90aa6ab39453da9e9f2d","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.1.1.tgz","integrity":"sha512-Xo5OF/C5vfSRmFu/b6vnbgl1A0GCPqh8t6SOcybZi3++sgdiOA3eAs+cHb5cxAT/bzpL6mCG2Ov6s2vpB9EL3g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBiCw1OtsH9+liVDECUHirU/H1qFE4zN0tbyYuPNyPcHAiBCOttQCn4YmpLtO99BqTjZ/+TuNTUMxbtkc7dqPlNEIw=="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.2.0":{"name":"hapi-named-routes","version":"0.2.0","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.2.0","dist":{"shasum":"9d2a3d28b193544733d801128f968b7500e3281b","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.2.0.tgz","integrity":"sha512-LSUWSuRmX6z9rMpmVCdFHU5tEjUznzfGtKTRhzbLqWMZZxMJE+368JAB5WocOSvBFz9XUhY6QJI+BU9asXFqdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDwRSwS+7ZXlPxm6Kwgt2QKjJkOebvnRuiVuQl7llW8gQIgIf3RI92iEWN//3AAIX4khwHXYK8PxdjK3YpEzu7I+LU="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}]},"0.3.0":{"name":"hapi-named-routes","version":"0.3.0","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"https://github.com/poeticninja/hapi-named-routes"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"gitHead":"fe746e952d031aa0c78c44dc144c55ded40bff15","homepage":"https://github.com/poeticninja/hapi-named-routes","_id":"hapi-named-routes@0.3.0","scripts":{},"_shasum":"752a9a468559e050c784500180ae39a279b6e905","_from":".","_npmVersion":"2.1.9","_nodeVersion":"0.10.32","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}],"dist":{"shasum":"752a9a468559e050c784500180ae39a279b6e905","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-0.3.0.tgz","integrity":"sha512-KEGjJRr1JxOO1Z19Y4c49qoEb6KCkSyfUv83HMx9g0h+6SYtHHLzZMbu+KUnWKnAwY5a9PE90FEz3eMGeAMhVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbm1LLKNFZgrq4unRtOWJTE9bsZmp65Q3YtwolFyr1ogIgDGMavt8q9Rhcr3WEjU+dTePzSufteJ1mRhvzgIkaPEc="}]}},"1.0.0":{"name":"hapi-named-routes","version":"1.0.0","description":"Hapi plugin to add named routes to your view templates","main":"index.js","repository":{"type":"git","url":"git+https://github.com/poeticninja/hapi-named-routes.git"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"scripts":{"test":"lab"},"engines":{"node":">=8.9.0"},"devDependencies":{"code":"5.x.x","handlebars":"4.x.x","hapi":"17.x.x","lab":"15.x.x","vision":"5.x.x"},"gitHead":"b2647f012e07741e28a28cfd6afdcfc44705725d","homepage":"https://github.com/poeticninja/hapi-named-routes#readme","_id":"hapi-named-routes@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"dist":{"integrity":"sha512-uw0r6qxYJyNR0GVXZHeHk4g21a3CVWk3cZkwb7JOQkdRMprvUQi3UX48DOCYj5T/sNCYGX8HrYVD3HonqFCMLg==","shasum":"280ffb1e909378437c8c1b6f6b697ed8aaa68471","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1nTaukarjbab5Xb4K9prp5BFD+aBI5K0G+Dz8HyJe6AIgDceV/729GFQO1yse30PRvYrwLlcb4HrTBY6w/AxZIY8="}]},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-named-routes-1.0.0.tgz_1515562185961_0.7964946983847767"}},"1.0.1":{"name":"hapi-named-routes","version":"1.0.1","description":"Hapi plugin to add named routes to your view templates","main":"lib/index.js","repository":{"type":"git","url":"git+https://github.com/poeticninja/hapi-named-routes.git"},"keywords":["hapi","routes","plugin","view","templates"],"author":{"name":"Saul Maddox"},"license":"MIT","bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"scripts":{"test":"lab"},"engines":{"node":">=8.9.0"},"devDependencies":{"code":"5.x.x","handlebars":"4.x.x","hapi":"17.x.x","lab":"15.x.x","vision":"5.x.x"},"gitHead":"c5e55f216db21f18108adbbbfd4f7357a1142848","homepage":"https://github.com/poeticninja/hapi-named-routes#readme","_id":"hapi-named-routes@1.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.3","_npmUser":{"name":"poeticninja","email":"saul.maddox@gmail.com"},"dist":{"integrity":"sha512-aywDPhG0oC29DNK5dPEcbARR9pTgRl3qEH2A80JyfJL7BBqx+XrQwz62waJN1iBJBNhYa4Qnb/f3ZKDUPtCerg==","shasum":"c482cd4a8b7a45af5f455aeb41b7281f6ef87c55","tarball":"https://registry.npmjs.org/hapi-named-routes/-/hapi-named-routes-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDoXOPsF4Bl+/fQ05tp+5MnHsl4Th8mFC5ZieBu9IyF0AIgEwJPZJ2yJc/XYlvd7rB2PzEIqxLIS45Y4P4xEieSsIk="}]},"maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hapi-named-routes-1.0.1.tgz_1515562371608_0.006288174539804459"}}},"readme":"Hapi Named Routes\n=================\n\nHapi plugin to add named routes to your view templates.\n\n## Goal:\nIn your view templates, instead of always typing the path in your links, you can now have access to the route name variable. It will just print the path.\n\n## How it works:\n\nIn your view template you can now access `path.name` where name is the id of the route.\n\nTo name a route you need to pass the config object to the route with the id being defined.\n\nExample:\n```\n// Route Config\nvar about = {\n    handler: function (request, reply) {\n        reply.view('about');\n    },\n    id: 'about'\n};\n\n// Array of routes for Hapi\nroutes = [\n    {\n        method: 'GET',\n        path: '/about',\n        config: about\n    }\n]\n\nserver.route(routes);\n```\nBased on the example above you now have access to `path.about` in your view templates, and will print out the routes path `/about`.\n\nHandlebars:\n`<a href=\"{{path.about}}\">About</a>`\n\nJade:\n`a(href=\"#{path.about}\") About`\n\n### Breaking changes\nIn Hapi 8.0.0 the `id` property for a route was added to allow a developer to access a route path using [`server.lookup()`](#serverlookupid). As of hapi-named-routes `0.3.0` we use this `id` instead of `app.name` like we previoisly used.\n\n### Other\n\nYou can see this being used in the Hapi Ninja boilerplate example. [https://github.com/poeticninja/hapi-ninja](https://github.com/poeticninja/hapi-ninja)\n","maintainers":[{"name":"poeticninja","email":"saul.maddox@gmail.com"}],"time":{"modified":"2022-06-18T19:08:15.812Z","created":"2013-12-11T21:19:26.316Z","0.0.1":"2013-12-11T21:19:26.878Z","0.0.2":"2013-12-11T23:41:28.287Z","0.0.3":"2013-12-12T21:56:26.417Z","0.0.4":"2013-12-20T15:28:39.388Z","0.0.5":"2013-12-22T18:41:51.967Z","0.0.6":"2013-12-22T18:48:43.456Z","0.1.0":"2014-01-19T16:27:28.137Z","0.1.1":"2014-05-15T00:10:37.115Z","0.2.0":"2014-06-15T18:23:47.089Z","0.3.0":"2014-12-26T20:11:29.797Z","1.0.0":"2018-01-10T05:29:46.865Z","1.0.1":"2018-01-10T05:32:52.521Z"},"author":{"name":"Saul Maddox"},"repository":{"type":"git","url":"git+https://github.com/poeticninja/hapi-named-routes.git"},"readmeFilename":"README.md","users":{"poeticninja":true},"homepage":"https://github.com/poeticninja/hapi-named-routes#readme","keywords":["hapi","routes","plugin","view","templates"],"bugs":{"url":"https://github.com/poeticninja/hapi-named-routes/issues"},"license":"MIT"}