loopbackio / loopbackio/strong-error-handler
Customize HTML templates
オープン
@davidcheung がすでに取り組んでいます。
2016年5月12日 から。
feature
help wanted
needs-priority
- 主要言語
- JavaScript
- スター
- 38
- フォーク
- 36
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 11
説明
Customize html templates in strong-error-handler, see https://github.com/strongloop/loopback/issues/1650#issuecomment-161920555 for details.
Configuration options:
// map of templates to use for rendering responses
views: {
// the default view
default: path.resolve(__dirname, 'views/error-default.jade'),
404: path.resolve(__dirname, 'views/error-not-found.jade'),
// etc.
},
// map of static files to send as a response
files: {
// default: path.resolve(__dirname, 'public/error.html'),
401: path.resolve(__dirname, 'views/error-unauthorized.html'),
// etc.
},
Requires #5
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。