diff --git a/bridge/README.md b/bridge/README.md index 85719992..d579963c 100644 --- a/bridge/README.md +++ b/bridge/README.md @@ -1,6 +1,6 @@ # WebUI Bridge -The WebUI Bridge connects the UI (_Web Browser_) with the backend application through WebSocket. This bridge is written in TypeScript, and it needs to be transpiled to JavaScript using [ESBuild](https://esbuild.github.io/) to produce `webui_bridge.js`, then converted to C99 header using the Python script `js2c.py` to generate `webui_bridge.h`. +The WebUI Bridge connects the UI (_Web Browser_) with the backend application through WebSocket. This bridge is written in TypeScript, and it needs to be transpiled to JavaScript using [ESBuild](https://esbuild.github.io/) to produce `webui_bridge.js`, then converted to C header using the Python script `js2c.py` to generate `webui_bridge.h`. ### Windows diff --git a/bridge/build.ps1 b/bridge/build.ps1 index 26df443f..3fee6911 100644 --- a/bridge/build.ps1 +++ b/bridge/build.ps1 @@ -55,7 +55,7 @@ if (!$silent) { Write-Host "Transpile and bundle WebUI-Bridge from TypeScript to .\node_modules\.bin\esbuild --bundle --target="chrome90,firefox90,safari15" --format=esm --tree-shaking=false --outdir=. ./webui_bridge.ts $log_level # Convert WebUI-Bridge (JS to C) -if (!$silent) { Write-Host "Convert WebUI-Bridge JavaScript to C99 Header..." } +if (!$silent) { Write-Host "Convert WebUI-Bridge JavaScript to C Header..." } & $python_cmd js2c.py # Done diff --git a/bridge/js2c.py b/bridge/js2c.py index 739602c1..80370c3b 100644 --- a/bridge/js2c.py +++ b/bridge/js2c.py @@ -4,7 +4,7 @@ # Licensed under MIT License. # All rights reserved. # -# WebUI JavaScript to C99 Header +# WebUI JavaScript to C Header def js_to_c_header(input_filename, output_filename): try: diff --git a/examples/C++/call_cpp_from_js/GNUmakefile b/examples/C++/call_cpp_from_js/GNUmakefile index 66c8dc4c..d4c6ab16 100644 --- a/examples/C++/call_cpp_from_js/GNUmakefile +++ b/examples/C++/call_cpp_from_js/GNUmakefile @@ -63,11 +63,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) debug static)..." + @echo "Build C Example ($(CXX) debug static)..." @$(CXX) -g $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CXX) debug dynamic)..." + @echo "Build C Example ($(CXX) debug dynamic)..." @$(CXX) -g $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean ifeq ($(PLATFORM),windows) @@ -84,12 +84,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) release static)..." + @echo "Build C Example ($(CXX) release static)..." @$(CXX) -Os $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CXX) release dynamic)..." + @echo "Build C Example ($(CXX) release dynamic)..." @$(CXX) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) # Clean diff --git a/examples/C++/call_js_from_cpp/GNUmakefile b/examples/C++/call_js_from_cpp/GNUmakefile index 66c8dc4c..d4c6ab16 100644 --- a/examples/C++/call_js_from_cpp/GNUmakefile +++ b/examples/C++/call_js_from_cpp/GNUmakefile @@ -63,11 +63,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) debug static)..." + @echo "Build C Example ($(CXX) debug static)..." @$(CXX) -g $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CXX) debug dynamic)..." + @echo "Build C Example ($(CXX) debug dynamic)..." @$(CXX) -g $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean ifeq ($(PLATFORM),windows) @@ -84,12 +84,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) release static)..." + @echo "Build C Example ($(CXX) release static)..." @$(CXX) -Os $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CXX) release dynamic)..." + @echo "Build C Example ($(CXX) release dynamic)..." @$(CXX) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) # Clean diff --git a/examples/C++/minimal/GNUmakefile b/examples/C++/minimal/GNUmakefile index 66c8dc4c..d4c6ab16 100644 --- a/examples/C++/minimal/GNUmakefile +++ b/examples/C++/minimal/GNUmakefile @@ -63,11 +63,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) debug static)..." + @echo "Build C Example ($(CXX) debug static)..." @$(CXX) -g $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CXX) debug dynamic)..." + @echo "Build C Example ($(CXX) debug dynamic)..." @$(CXX) -g $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean ifeq ($(PLATFORM),windows) @@ -84,12 +84,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) release static)..." + @echo "Build C Example ($(CXX) release static)..." @$(CXX) -Os $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CXX) release dynamic)..." + @echo "Build C Example ($(CXX) release dynamic)..." @$(CXX) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) # Clean diff --git a/examples/C++/serve_a_folder/GNUmakefile b/examples/C++/serve_a_folder/GNUmakefile index 66c8dc4c..d4c6ab16 100644 --- a/examples/C++/serve_a_folder/GNUmakefile +++ b/examples/C++/serve_a_folder/GNUmakefile @@ -63,11 +63,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) debug static)..." + @echo "Build C Example ($(CXX) debug static)..." @$(CXX) -g $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CXX) debug dynamic)..." + @echo "Build C Example ($(CXX) debug dynamic)..." @$(CXX) -g $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean ifeq ($(PLATFORM),windows) @@ -84,12 +84,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CXX) release static)..." + @echo "Build C Example ($(CXX) release static)..." @$(CXX) -Os $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CXX) release dynamic)..." + @echo "Build C Example ($(CXX) release dynamic)..." @$(CXX) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) # Clean diff --git a/examples/C/README.md b/examples/C/README.md index 69dd1625..1970f8ba 100644 --- a/examples/C/README.md +++ b/examples/C/README.md @@ -2,7 +2,7 @@ Examples of how to create a WebUI application in C. -## C99 Examples +## C Examples The only requirement to build the examples is a C compiler. diff --git a/examples/C/call_c_from_js/GNUmakefile b/examples/C/call_c_from_js/GNUmakefile index c04f5476..3483f958 100644 --- a/examples/C/call_c_from_js/GNUmakefile +++ b/examples/C/call_c_from_js/GNUmakefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # == 1. VARIABLES ============================================================= @@ -73,11 +73,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) debug static)..." + @echo "Build C Example ($(CC) debug static)..." @$(CC) -g $(CONSOLE_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CC) debug dynamic)..." + @echo "Build C Example ($(CC) debug dynamic)..." $(COPY_LIB_CMD) @$(CC) -g $(CONSOLE_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean @@ -95,12 +95,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) release static)..." + @echo "Build C Example ($(CC) release static)..." @$(CC) -Os $(GUI_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CC) release dynamic)..." + @echo "Build C Example ($(CC) release dynamic)..." $(COPY_LIB_CMD) @$(CC) $(GUI_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) diff --git a/examples/C/call_c_from_js/Makefile b/examples/C/call_c_from_js/Makefile index 8b420742..b3d5da5d 100644 --- a/examples/C/call_c_from_js/Makefile +++ b/examples/C/call_c_from_js/Makefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # Windows - Microsoft Visual C SHELL = CMD @@ -20,11 +20,11 @@ debug: !ENDIF # Static with Debug info !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Debug)... + @echo Build C Example (Static Debug)... @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic with Debug info - @echo Build C99 Example (Dynamic Debug)... + @echo Build C Example (Dynamic Debug)... @copy "$(LIB_DIR)\debug\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean @@ -41,11 +41,11 @@ release: !ENDIF # Static Release !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Release)... + @echo Build C Example (Static Release)... @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic Release - @echo Build C99 Example (Dynamic Release)... + @echo Build C Example (Dynamic Release)... @copy "$(LIB_DIR)\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean diff --git a/examples/C/call_js_from_c/GNUmakefile b/examples/C/call_js_from_c/GNUmakefile index c04f5476..3483f958 100644 --- a/examples/C/call_js_from_c/GNUmakefile +++ b/examples/C/call_js_from_c/GNUmakefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # == 1. VARIABLES ============================================================= @@ -73,11 +73,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) debug static)..." + @echo "Build C Example ($(CC) debug static)..." @$(CC) -g $(CONSOLE_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CC) debug dynamic)..." + @echo "Build C Example ($(CC) debug dynamic)..." $(COPY_LIB_CMD) @$(CC) -g $(CONSOLE_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean @@ -95,12 +95,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) release static)..." + @echo "Build C Example ($(CC) release static)..." @$(CC) -Os $(GUI_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CC) release dynamic)..." + @echo "Build C Example ($(CC) release dynamic)..." $(COPY_LIB_CMD) @$(CC) $(GUI_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) diff --git a/examples/C/call_js_from_c/Makefile b/examples/C/call_js_from_c/Makefile index 8b420742..b3d5da5d 100644 --- a/examples/C/call_js_from_c/Makefile +++ b/examples/C/call_js_from_c/Makefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # Windows - Microsoft Visual C SHELL = CMD @@ -20,11 +20,11 @@ debug: !ENDIF # Static with Debug info !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Debug)... + @echo Build C Example (Static Debug)... @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic with Debug info - @echo Build C99 Example (Dynamic Debug)... + @echo Build C Example (Dynamic Debug)... @copy "$(LIB_DIR)\debug\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean @@ -41,11 +41,11 @@ release: !ENDIF # Static Release !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Release)... + @echo Build C Example (Static Release)... @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic Release - @echo Build C99 Example (Dynamic Release)... + @echo Build C Example (Dynamic Release)... @copy "$(LIB_DIR)\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean diff --git a/examples/C/custom_web_server/GNUmakefile b/examples/C/custom_web_server/GNUmakefile index c04f5476..3483f958 100644 --- a/examples/C/custom_web_server/GNUmakefile +++ b/examples/C/custom_web_server/GNUmakefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # == 1. VARIABLES ============================================================= @@ -73,11 +73,11 @@ ifeq ($(BUILD_LIB),true) endif # Static with Debug info ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) debug static)..." + @echo "Build C Example ($(CC) debug static)..." @$(CC) -g $(CONSOLE_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) endif # Dynamic with Debug info - @echo "Build C99 Example ($(CC) debug dynamic)..." + @echo "Build C Example ($(CC) debug dynamic)..." $(COPY_LIB_CMD) @$(CC) -g $(CONSOLE_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) # Clean @@ -95,12 +95,12 @@ ifeq ($(BUILD_LIB),true) endif # Static Release ifneq ($(WEBUI_USE_TLS), 1) - @echo "Build C99 Example ($(CC) release static)..." + @echo "Build C Example ($(CC) release static)..." @$(CC) -Os $(GUI_APP) $(STATIC_BUILD_FLAGS) $(LWS2_OPT) -o $(STATIC_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(STATIC_OUT) endif # Dynamic Release - @echo "Build C99 Example ($(CC) release dynamic)..." + @echo "Build C Example ($(CC) release dynamic)..." $(COPY_LIB_CMD) @$(CC) $(GUI_APP) $(DYN_BUILD_FLAGS) $(LWS2_OPT) -o $(DYN_OUT) @$(LLVM_OPT)strip $(STRIP_OPT) $(DYN_OUT) diff --git a/examples/C/custom_web_server/Makefile b/examples/C/custom_web_server/Makefile index 8b420742..b3d5da5d 100644 --- a/examples/C/custom_web_server/Makefile +++ b/examples/C/custom_web_server/Makefile @@ -1,4 +1,4 @@ -# WebUI C99 Example +# WebUI C Example # Windows - Microsoft Visual C SHELL = CMD @@ -20,11 +20,11 @@ debug: !ENDIF # Static with Debug info !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Debug)... + @echo Build C Example (Static Debug)... @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic with Debug info - @echo Build C99 Example (Dynamic Debug)... + @echo Build C Example (Dynamic Debug)... @copy "$(LIB_DIR)\debug\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl /Zi main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)\debug" /MACHINE:X64 /SUBSYSTEM:CONSOLE $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean @@ -41,11 +41,11 @@ release: !ENDIF # Static Release !IF "$(WEBUI_USE_TLS)" != "1" - @echo Build C99 Example (Static Release)... + @echo Build C Example (Static Release)... @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME)-static.lib user32.lib Advapi32.lib Shell32.lib /OUT:main.exe 1>NUL 2>&1 !ENDIF # Dynamic Release - @echo Build C99 Example (Dynamic Release)... + @echo Build C Example (Dynamic Release)... @copy "$(LIB_DIR)\$(WEBUI_LIB_NAME).dll" "$(WEBUI_LIB_NAME).dll" @cl main.c /I"$(INCLUDE_DIR)" /link /LIBPATH:"$(LIB_DIR)" /MACHINE:X64 /SUBSYSTEM:WINDOWS $(WEBUI_LIB_NAME).lib user32.lib Advapi32.lib Shell32.lib /OUT:main-dyn.exe 1>NUL 2>&1 # Clean diff --git a/examples/C/custom_web_server/index.html b/examples/C/custom_web_server/index.html index 42bf9eea..b671d443 100644 --- a/examples/C/custom_web_server/index.html +++ b/examples/C/custom_web_server/index.html @@ -2,12 +2,12 @@
-
This HTML page is handled by a custom Web-Server other than WebUI.
This window is connected to the back-end because we used:
http://localhost:8081/webui.jsdiff --git a/examples/C/custom_web_server/second.html b/examples/C/custom_web_server/second.html index d4937721..c8b77f96 100644 --- a/examples/C/custom_web_server/second.html +++ b/examples/C/custom_web_server/second.html @@ -2,7 +2,7 @@ -
You can edit this HTML file as you need.
diff --git a/examples/C/serve_a_folder/second.html b/examples/C/serve_a_folder/second.html
index d723f29f..cf60765e 100644
--- a/examples/C/serve_a_folder/second.html
+++ b/examples/C/serve_a_folder/second.html
@@ -2,7 +2,7 @@