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
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Linked List Using Two Cla...
by
Thaddy
[
Today
at 03:25:28 pm]
The compiler fails to war...
by
Nicole
[
Today
at 03:23:25 pm]
How to prevent onDropFile...
by
cdbc
[
Today
at 03:09:19 pm]
Maze Makers: Now looking ...
by
Thaddy
[
Today
at 02:51:41 pm]
unit init, finalize and i...
by
Zvoni
[
Today
at 02:48:57 pm]
Embedded qss stylesheets ...
by
big_M
[
Today
at 01:01:30 pm]
Lazreport PDF
by
mig-31
[
Today
at 11:54:11 am]
Locate current record aft...
by
Zvoni
[
Today
at 09:59:08 am]
Drag and Drop Files; onDr...
by
Hansaplast
[
Today
at 09:39:25 am]
Lazarus and Libre Office
by
MarkMLl
[
Today
at 09:22:14 am]
CudaText editor (written ...
by
AlexTP
[
Today
at 08:51:13 am]
scat bikes (inc)
by
speter
[
Today
at 04:38:11 am]
Effect of adding properti...
by
n7800
[
Today
at 04:13:36 am]
solution for installing F...
by
BradleySlavik
[
Today
at 02:37:22 am]
Lazarus seems to be makin...
by
n7800
[
Today
at 02:33:42 am]
What was your first compu...
by
CM630
[January 13, 2026, 10:09:19 pm]
Dragging files to .app no...
by
Boleeman
[January 13, 2026, 10:06:09 pm]
PngDrop: Reduce the size ...
by
Boleeman
[January 13, 2026, 09:50:19 pm]
Fantasy Worldbuilder; Pro...
by
Boleeman
[January 13, 2026, 09:45:56 pm]
TSpeedButton qt6 styleshe...
by
big_M
[January 13, 2026, 09:23:24 pm]
StrToDateTime problems
by
Nicole
[January 13, 2026, 07:45:13 pm]
How to forward a Class in...
by
Hartmut
[January 13, 2026, 07:41:31 pm]
Additional Filedialog opt...
by
Hansaplast
[January 13, 2026, 07:39:28 pm]
set zero values not to b...
by
wp
[January 13, 2026, 05:58:41 pm]
Fast Canvas Library V1.05...
by
Gigatron
[January 13, 2026, 05:15:06 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Web Pascal without JavaScript = Pascal + HTMX (Read 5586 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: 415
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