Recent

Author Topic: [Tutorial] Basic fpWeb Tutorial Article  (Read 40303 times)

af0815

  • Hero Member
  • *****
  • Posts: 1288
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #45 on: June 08, 2018, 07:03:21 am »
The tutorial is very inetresting. Thanks for sharing the information
regards
Andreas

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #46 on: June 08, 2018, 07:01:25 pm »
The addition of new routing mechanism didn't take the whole article into considerations. Therefore, you might find the routing section a bit detached from the others. I'm thinking on better restructuring, supporting the two mechanism without duplicating the effort in other sections. Right now, other sections are written with the old mechanism in mind. Feel free to state any idea for this.

nummer8

  • Full Member
  • ***
  • Posts: 108
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #47 on: June 08, 2018, 07:09:55 pm »
Thank you for adding the routing part!

Jos

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #48 on: June 08, 2018, 10:16:42 pm »
Hello Leledumbo, what is the license of the tutorial?

Best regards.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #49 on: June 09, 2018, 10:58:46 am »
Hello Leledumbo, what is the license of the tutorial?

Best regards.
Damn right, I never state it. I'll probably make it CC BY-SA, as I want modifications to be contributed back.

BSaidus

  • Hero Member
  • *****
  • Posts: 540
  • lazarus 1.8.4 Win8.1 / cross FreeBSD
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #50 on: January 28, 2023, 08:25:42 pm »
Hi @Leledumbo
I can not find the pdf, Can you make it online back.
Thanks.
lazarus 1.8.4 Win8.1 / cross FreeBSD
dhukmucmur vernadh!

dseligo

  • Hero Member
  • *****
  • Posts: 1194
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #51 on: January 28, 2023, 10:29:35 pm »
Hi @Leledumbo
I can not find the pdf, Can you make it online back.
Thanks.

Not PDF, but wiki: https://wiki.lazarus.freepascal.org/fpWeb_Tutorial

egsuh

  • Hero Member
  • *****
  • Posts: 1273
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #52 on: January 28, 2023, 11:20:32 pm »
Thank you for your hard working.  Following is an excerpt from the tutorial.
 
Shouldn't parameters    AResponse   be defined as    AResponse:TResponse,   in TRouteCallback and TRouteEvent?


Quote
Registering a Route

The 2nd, 3rd or 4th parameter (depending on whether you want to handle specific HTTP method and/or pass additional data to it) of HTTPRouter.RegisterRoute is overloaded with several possibilities:

    Callback procedure

TRouteCallback = Procedure(ARequest: TRequest; AResponse);

    Callback event

TRouteEvent = Procedure(ARequest: TRequest; AResponse) of object;

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #53 on: February 02, 2023, 10:31:25 am »
Hi @Leledumbo
I can not find the pdf, Can you make it online back.
Thanks.
Sorry, I quitted using dropbox. The book is now on github, feel free to clone and generate the PDF yourself.

Roland57

  • Sr. Member
  • ****
  • Posts: 419
    • msegui.net
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #54 on: February 02, 2023, 10:53:59 am »
@leledumbo

Thank you for sharing.

For me, I have zero knowledge about web programming, and I don't have time nor need to learn it, but I am very interested in writing things in Markdown. Please could you share your method for generating HTML and PDF documents? Do you use pandoc, or another tool?

Regards.

Roland
My projects are on Gitlab and on Codeberg.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #55 on: February 02, 2023, 09:45:03 pm »
Please could you share your method for generating HTML and PDF documents? Do you use pandoc, or another tool?
The editor I use is Typora, it indeed depends on pandoc to generate its export formats, but I don't need to see that, it's a single menu item from the editor.

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #56 on: February 02, 2023, 11:41:28 pm »
Wow, you have done a lot of work to get that on Github, well done !

If the content still the same as that on the Wiki or have you updated it as you go ?

(just wondering if there should be a link to the github page from the wiki and visa versa)

Davo

Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #57 on: February 02, 2023, 11:45:58 pm »
If the content still the same as that on the Wiki or have you updated it as you go ?
Guess it's still the same, I don't really remember. Just diff it out yourself. Was a mistake putting it on bitbucket, I've lost all the history and left with latest available locally.

Roland57

  • Sr. Member
  • ****
  • Posts: 419
    • msegui.net
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #58 on: February 03, 2023, 05:45:36 am »
The editor I use is Typora, it indeed depends on pandoc to generate its export formats, but I don't need to see that, it's a single menu item from the editor.

Thanks for your answer. I will take a look to Typora.
My projects are on Gitlab and on Codeberg.

PierceNg

  • Sr. Member
  • ****
  • Posts: 369
    • SamadhiWeb
Re: [Tutorial] Basic fpWeb Tutorial Article
« Reply #59 on: February 03, 2023, 07:04:39 am »
Thanks for your answer. I will take a look to Typora.

You might be interested in https://github.com/grahamegrieve/delphi-markdown which works with FPC.

Markdown processors usually generate HTML fragments, so Markdown is usually combined with a template system such as Mustache to generate complete HTML documents. FPC comes with a Mustache processor in package fcl-mustache in its main branch.

 

TinyPortal © 2005-2018