Re: Vibe.d navigation

2020-04-01 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 02:15:25 UTC, Steven Schveighoffer wrote: On 3/31/20 4:43 PM, GreatSam4sure wrote: [...] Vibe does not render templates automatically. You have to render them from a function. The function can be in a route that has nothing to do with the name of the template.

Re: Vibe.d navigation

2020-03-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/31/20 10:15 PM, Steven Schveighoffer wrote: I have purposely not made the names of the functions different from page1 and page2 That should have read I have purposely *made* the names different. Sorry if that was confusing. I edited my post a lot and didn't reread before posting.

Re: Vibe.d navigation

2020-03-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/31/20 4:43 PM, GreatSam4sure wrote: Thanks for your reply. My problem is that I have two views say page1.dt and page2.dt each are HTML 5 pages with head and body. I want to click a button or a link in page to go page 2 vis-a-vis using webinterface. How do I define the web interface

Re: Vibe.d navigation

2020-03-31 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 19:34:55 UTC, Steven Schveighoffer wrote: On 3/31/20 2:57 PM, GreatSam4sure wrote: [...] I'm not sure what you mean. Vibe has ways to control the route names of the members of your web interface using UDAs, but primarily uses the name of the functions. A nice

Re: Vibe.d navigation

2020-03-31 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 19:34:55 UTC, Steven Schveighoffer wrote: On 3/31/20 2:57 PM, GreatSam4sure wrote: I am playing with the vibe.d for some days now. One thing I am struggling with is move from one page to another using web interface. The naming of the functions and proper navigation

Re: Vibe.d navigation

2020-03-31 Thread JN via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 18:57:51 UTC, GreatSam4sure wrote: I am playing with the vibe.d for some days now. One thing I am struggling with is move from one page to another using web interface. The naming of the functions and proper navigation from one page to another is not clear to me.

Re: Vibe.d navigation

2020-03-31 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/31/20 2:57 PM, GreatSam4sure wrote: I am playing with the vibe.d for some days now. One thing I am struggling with is move from one page to another using web interface. The naming of the functions and proper navigation from one page to another is not clear to me. How to move from one