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
Very Slow Online Package ...
by
Thaddy
[
Today
at 11:16:02 am]
Forum sloooow again...
by
440bx
[
Today
at 09:31:57 am]
Lazarus on Mint - Palette...
by
dbannon
[
Today
at 08:32:53 am]
AVRPascal – free code edi...
by
ackarwow
[
Today
at 07:55:51 am]
Online Package Manager
by
TRon
[
Today
at 07:34:33 am]
Using Bresenham's line al...
by
cdbc
[
Today
at 07:26:21 am]
Explaining Generics and S...
by
cdbc
[
Today
at 07:05:55 am]
Crash in app
by
biologic
[
Today
at 04:11:10 am]
Rotating a simple bitmap ...
by
TBMan
[
Today
at 03:27:43 am]
fpsSpreadsheet. Unable t...
by
dgrhoads
[
Today
at 03:11:52 am]
Weird error: component no...
by
heebiejeebies
[
Today
at 02:43:58 am]
IDE tabs and spaces, auto...
by
n7800
[
Today
at 02:42:52 am]
[SOLVED] What is the name...
by
n7800
[
Today
at 01:52:19 am]
filename from Uri
by
biologic
[
Today
at 01:45:44 am]
Where are the sources for...
by
flowCRANE
[
Today
at 12:38:54 am]
Reading text out loud?
by
jamie
[
Today
at 12:02:05 am]
Speech from textbox
by
jamie
[March 22, 2025, 11:47:40 pm]
Подписи кнопок панели инс...
by
Miralok
[March 22, 2025, 11:33:50 pm]
How to delete from app il...
by
Boleeman
[March 22, 2025, 10:54:59 pm]
Can't put Lazarus in dock
by
VTwin
[March 22, 2025, 08:33:23 pm]
TrayIcon doesn't work usi...
by
CM630
[March 22, 2025, 08:31:45 pm]
Uninstall
by
VTwin
[March 22, 2025, 08:09:22 pm]
How to wirte a drag into ...
by
d2010
[March 22, 2025, 07:12:18 pm]
I'm wondering, what kind ...
by
Joanna from IRC
[March 22, 2025, 06:54:00 pm]
Cannot set width and heig...
by
anse
[March 22, 2025, 06:38:12 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Web Pascal without JavaScript = Pascal + HTMX (Read 5022 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