Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Web Pascal without JavaScript = Pascal + HTMX
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
in regards to "FPU 80 bit...
by
srvaldez
[
Today
at 12:08:17 am]
PAS2JS: Error: Not suppor...
by
peter.dell
[
Today
at 12:07:19 am]
efficiency problem
by
LV
[February 17, 2025, 11:58:38 pm]
Change the field length i...
by
regs
[February 17, 2025, 11:38:08 pm]
Form disappears after foc...
by
OC DelGuy
[February 17, 2025, 11:37:02 pm]
Can't find unit unixsocke...
by
TCH
[February 17, 2025, 11:27:25 pm]
Extended ascii characters...
by
440bx
[February 17, 2025, 11:07:44 pm]
A circular / ring buffer ...
by
robert rozee
[February 17, 2025, 10:00:33 pm]
Troubles with function de...
by
CM630
[February 17, 2025, 09:41:08 pm]
PortAudio Configure Devic...
by
Fred vS
[February 17, 2025, 09:26:11 pm]
Probably a known bug
by
PascalDragon
[February 17, 2025, 09:01:52 pm]
How to select which unit ...
by
PascalDragon
[February 17, 2025, 08:48:25 pm]
Problems with calling ffm...
by
TRon
[February 17, 2025, 08:47:45 pm]
Hively Library
by
TRon
[February 17, 2025, 08:17:36 pm]
OnGuard troubles with TOg...
by
rvk
[February 17, 2025, 08:14:32 pm]
Form Canvas Strange
by
milen_prg
[February 17, 2025, 08:07:10 pm]
Text file problem
by
old_DOS_err
[February 17, 2025, 07:47:57 pm]
Problems compiling Adlibt...
by
TRon
[February 17, 2025, 07:41:50 pm]
How to use TCustomApplica...
by
Jonny
[February 17, 2025, 06:59:05 pm]
Algorithm for negative of...
by
Nimbus
[February 17, 2025, 06:40:51 pm]
Source code explorer - te...
by
loaded
[February 17, 2025, 06:13:01 pm]
Lazarus Release Candidate...
by
Fabs_Muller
[February 17, 2025, 05:18:37 pm]
I've written a program
by
Thaddy
[February 17, 2025, 04:20:30 pm]
Error with VirtualdbtreeE...
by
janhsh
[February 17, 2025, 04:07:05 pm]
How can I hide an annoyin...
by
wp
[February 17, 2025, 04:06:37 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Web Pascal without JavaScript = Pascal + HTMX (Read 4846 times)
zendrael
New Member
Posts: 16
Web Pascal without JavaScript = Pascal + HTMX
«
on:
October 13, 2023, 07:12:24 pm »
Hello!
Started a project with Pascal (CGI) and HTM
X
lib, which enables you to create SPA (Single Page Applications)
without using JavaScript
.
https://github.com/zendrael/create_htmx_pascal_app
I hope it turns out to be interesting to some people and serve as a starting point.
[edit] changed repo address
«
Last Edit: January 13, 2025, 05:18:50 pm by zendrael
»
Logged
PierceNg
Sr. Member
Posts: 398
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #1 on:
October 14, 2023, 02:57:17 am »
Nice. I use HTMX in my projects, including in my blog which is 99% static content. Good stuff.
How about adding another demo using fphttpapp, to do away with using Python entirely.
Logged
Pascal blog posts, open source:
-
https://samadhiweb.com/tags/Pascal.html
-
https://github.com/PierceNg/fpwebview
-
https://github.com/PierceNg/wasm-demo
zendrael
New Member
Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #2 on:
October 14, 2023, 09:25:22 pm »
Great idea Pierce, thanks for sharing it!
I'll also probably make a Pas2JS node module one, too!
Logged
nummer8
Full Member
Posts: 124
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #3 on:
October 14, 2023, 10:31:00 pm »
Hi zendrael,
Thanks for the short CGI demo.
I used it to make a small fphttpapp demo.
The code is in the attachment.
HTMX is something to explore for sure!
Have fun!
Logged
zendrael
New Member
Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #4 on:
October 15, 2023, 02:19:17 pm »
Hi nummer8!
Thanks a lot for sharing the code!
Can I modify it a little and add to the repo structure?
Logged
nummer8
Full Member
Posts: 124
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #5 on:
October 15, 2023, 02:28:42 pm »
Sure!
No problem
You can use the code as you wish!
Logged
TheEditor
New Member
Posts: 22
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #6 on:
October 20, 2023, 06:59:13 am »
I'm unable to get nummer8's demo to work. "localhost" just downloads the index.html rather than render it. Mime types issue perhaps?
Logged
zendrael
New Member
Posts: 16
Re: Web Pascal without JavaScript = Pascal + HTMX
«
Reply #7 on:
January 13, 2025, 05:19:57 pm »
Which are the steps you are using to compile and run it?
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
Web Pascal without JavaScript = Pascal + HTMX
TinyPortal
© 2005-2018