Skip to content

Commit 4974320

Browse files
Update README.md
1 parent 4eccdc1 commit 4974320

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

julia/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,10 @@
22

33
To use WebForms Core, first copy the WebForms class file in this directory to your project. Then create a new View file similar to the one below.
44

5-
```php
5+
```julia
66
using HTTP
77

8-
# Assuming WebForms and InputPlace modules are already defined in the project
98
include("WebForms.jl")
10-
include("InputPlace.jl")
119

1210
function handle_request(req::HTTP.Request)
1311
if HTTP.hasheader(req, "Content-Type") && occursin("application/x-www-form-urlencoded", req.headers["Content-Type"])
@@ -32,7 +30,6 @@ function handle_request(req::HTTP.Request)
3230
end
3331
end
3432

35-
# HTML form for the GET request
3633
html = """
3734
<!DOCTYPE html>
3835
<html>
@@ -60,7 +57,6 @@ function handle_request(req::HTTP.Request)
6057
return HTTP.Response(200, html)
6158
end
6259

63-
# Start the HTTP server
6460
HTTP.serve(handle_request, "127.0.0.1", 8080)
6561
```
6662

@@ -71,4 +67,4 @@ As you can see, the WebFormsJS script has been added in the header section of th
7167

7268
The latest version of the WebFormsJS script is available through the link below.
7369

74-
https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js
70+
https://github.com/elanatframework/Web_forms/blob/elanat_framework/web-forms.js

0 commit comments

Comments
 (0)