mirror of
https://github.com/donlon/cloudflare-error-page.git
synced 2025-12-19 14:59:28 +00:00
Update README.md
This commit is contained in:
19
README.md
19
README.md
@@ -6,7 +6,7 @@ This project creates customized error pages that mimics the well-known Cloudflar
|
||||
|
||||
## Online Editor
|
||||
|
||||
Here's an editor for the error page. You can try this out [here](https://virt.moe/cloudflare-error-page/editor/).
|
||||
Here's an online editor for the error page. Try this out [here](https://virt.moe/cloudflare-error-page/editor/).
|
||||
|
||||

|
||||
|
||||
@@ -20,7 +20,7 @@ Install `cloudflare-error-page` with pip.
|
||||
pip install git+https://github.com/donlon/cloudflare-error-page.git
|
||||
```
|
||||
|
||||
Then you can generate an error page based on parameters you like. (See [example.py](examples/example.py))
|
||||
Then you can generate an error page with the `render` function. ([example.py](examples/example.py))
|
||||
|
||||
``` Python
|
||||
import webbrowser
|
||||
@@ -58,7 +58,9 @@ webbrowser.open('error.html')
|
||||
|
||||

|
||||
|
||||
You can also see this example [here](https://virt.moe/cloudflare-error-page/examples/default).
|
||||
You can also see live demo [here](https://virt.moe/cloudflare-error-page/examples/default).
|
||||
|
||||
A demo server using Flask is also available in [flask_demo.py](examples/flask_demo.py).
|
||||
|
||||
### Node.js
|
||||
|
||||
@@ -69,7 +71,7 @@ You can also see this example [here](https://virt.moe/cloudflare-error-page/exam
|
||||
### PHP
|
||||
|
||||
``` PHP
|
||||
// Coming soon!
|
||||
/* Coming soon! */
|
||||
```
|
||||
|
||||
## More Examples
|
||||
@@ -101,7 +103,7 @@ params = {
|
||||
|
||||

|
||||
|
||||
[Link](https://virt.moe/cloudflare-error-page/examples/catastrophic)
|
||||
[Demo](https://virt.moe/cloudflare-error-page/examples/catastrophic)
|
||||
|
||||
### Web server is working
|
||||
|
||||
@@ -133,12 +135,7 @@ params = {
|
||||
|
||||

|
||||
|
||||
[Link](https://virt.moe/cloudflare-error-page/examples/working)
|
||||
|
||||
|
||||
### Using Flask server
|
||||
|
||||
See [flask_demo.py](examples/flask_demo.py) for embedding the error pages into the server
|
||||
[Demo](https://virt.moe/cloudflare-error-page/examples/working)
|
||||
|
||||
|
||||
## Full Parameter Reference
|
||||
|
||||
Reference in New Issue
Block a user