Introduction
Hello and welcome, DEV friends! 👋
As you probably know, the printed book that we planned to release with Packt publisher ...
For further actions, you may consider blocking this person and/or reporting abuse
Awesome,
Thank you very very much :-)
Hi Vic, thankyou for the series of articles on this. I have couple of questions.
In the
/go/routing.gosample there isShould this be Patch? There doesn't seem to be a Path method in fiber/v2 and app.patch is also used by routing.js.
Also in
/go/templates.gothere is no mention of the module that needs to be imported for pug?Hi,
Wow, nice catch! My bad... Thanks, I fixed it in article 👍
Function for Pug (and other supported template engines) was included to
gofiber/templatemodule. Call it, like this:github.com/gofiber/template/pug.Thanks for sharing and writing this blogposts.. as someone said earlier, it's a shame that the development of the book stopped, but I guess it's for a good reason. Keep it rolling! Thanks for the time invested :)
I have a question of using Pug :
How to iterate on array/slice/map in Pug ?
For single values, we know the following will work :
h4= .Title
h4= .Message
This works too :
h4 #{.Title}
h4 #{ .Message}
But, how to use the usual pug syntax for iteration like the following ?
ul
each val in ["Java", "Go", "Rust", "C++", "FoxPro/Clipper"]
li= val
I have searched for this, but haven't found anywhere.
A pity the book is not coming, but the very good thing is, that you're willing to share.
(and written in an understandable way :-) )
I love it. Waiting for the next article. 😛
Amazing! Looking forward to the series. I have dabbled with Gin but have been looking to give Fiber a try. This series will be a great help.
You're welcome! New article is coming 😉
A good post about fiber. I always find how to use fiber to create API's, I would like to ask if you will share how to use fiber to save html templates as well as static files.