Small HTML fix and optimizations in htdocs/info.fun. (0.37.31)
This commit is contained in:
parent
a27ff12b08
commit
c8393251e5
2 changed files with 3 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
project(fun VERSION 0.37.30 LANGUAGES C)
|
project(fun VERSION 0.37.31 LANGUAGES C)
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
#!/usr/bin/env fun
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of the Fun programming language.
|
* This file is part of the Fun programming language.
|
||||||
* https://fun-lang.xyz/
|
* https://fun-lang.xyz/
|
||||||
|
|
@ -11,14 +9,12 @@
|
||||||
* Added: 2025-12-28
|
* Added: 2025-12-28
|
||||||
*/
|
*/
|
||||||
|
|
||||||
content = fun_version()
|
print("<!doctype html><html><body>")
|
||||||
|
|
||||||
print("<html><body>")
|
|
||||||
print("<h1>Fun Environment Information</h1>")
|
print("<h1>Fun Environment Information</h1>")
|
||||||
print("<p><strong>Current Path:</strong> " + env("PATH") + "</p>")
|
print("<p><strong>Current Path:</strong> " + env("PATH") + "</p>")
|
||||||
print("<p><strong>Current User:</strong> " + env("USER") + "</p>")
|
print("<p><strong>Current User:</strong> " + env("USER") + "</p>")
|
||||||
print("<p><strong>Time:</strong> " + date_format(time_now_ms(), "%Y-%m-%d %H:%M:%S") + "</p>")
|
print("<p><strong>Time:</strong> " + date_format(time_now_ms(), "%Y-%m-%d %H:%M:%S") + "</p>")
|
||||||
print("<p><strong>Version:</strong> " + to_string(content) + "</p>")
|
print("<p><strong>Version:</strong> " + to_string(fun_version()) + "</p>")
|
||||||
print("<h2>Full Environment:</h2>")
|
print("<h2>Full Environment:</h2>")
|
||||||
print("<ul>")
|
print("<ul>")
|
||||||
all_env = env_all()
|
all_env = env_all()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue