@arcblock/result-html-pages

2.10.67 • Public • Published

result-html-pages

This package provide a function that generates html code for common error pages such as 404, 500, etc.

Usage

const { render } = require('@arcblock/result-html-pages');
// or import { render } from '@arcblock/result-html-pages'

render({ status: '404' }) // => 404 page
render({ status: '403' }) // => 403 page
render({ status: '500' }) // => 500 page
render({ status: 'error' }) // => error page
render({ status: 'maintenance' }) // => maintenance page
render({ status: 'comingSoon' }) // => comingSoon page
render({ status: 'info', title: 'Here is a info message' }) // => info page
render({ title: '...', description: '...', icon: '...' }) // => custom result page

Readme

Keywords

Package Sidebar

Install

npm i @arcblock/result-html-pages

Weekly Downloads

1,072

Version

2.10.67

License

Apache-2.0

Unpacked Size

19.9 kB

Total Files

11

Last publish

Collaborators

  • wangshijun
  • polunzh
  • mave99a
  • gxw