You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am relatively new to perl6 and I am working on a project and using Cro. I want to have a home page in which I can click different links that open other HTML files. I followed the documentation to make a static page, but I need to create a dynamic one. How do I go about doing that?
Still Learning Perl6 | Thanks
The text was updated successfully, but these errors were encountered:
Hi. By "dynamic page" you mean a single page application or you just want to present different server-side HTML to the user depending on some conditions of a request?
If the second one, Cro handles delivery for you, but does not restrict you to its own tool set when it comes to building sites, as it is not a web framework.
For templating you can use any engine you want, see https://modules.perl6.org/search/?q=template for available options.
There is one written by Cro author, https://github.com/croservices/cro-webapp, which has Cro::HTTP::Router related examples.
If you want a single page application, you'd need to inevitably work with javascript/node side of things, which are changing rapidly, but a tutorial of how Cro backend can look like is at https://cro.services/docs/intro/spa-with-cro
Thank you. Sorry if that was confusing. I just wanted a home page with buttons that linked to other various HTML pages. I will take a look at the Cro Module (Cro::HTTP::Router) when I have a minute. I’m pretty sure it’s what I need, although I am not certain.
I am relatively new to perl6 and I am working on a project and using Cro. I want to have a home page in which I can click different links that open other HTML files. I followed the documentation to make a static page, but I need to create a dynamic one. How do I go about doing that?
Still Learning Perl6 | Thanks
The text was updated successfully, but these errors were encountered: