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 way to see what is registered is to turn the log level to trace when you are setting up your routes, and then set it back to normal during runtime. This prints out all the routes as vibe registers them.

e.g.:

void main()
{
    setLogLevel(LogLevel.trace);
    auto router = new URLRouter();

    ... // set up routes

    auto listener = listenHTTP(settings, router);
    setLogLevel(LogLevel.diagnostic);

    ... // run your event loop
}

If you have more specific examples, I'm glad to help you understand. If you haven't already read it, you should read this page: https://vibed.org/api/vibe.web.web/registerWebInterface

-Steve



I have a head.dt file that is the head content of all my pages. How can I change the title programmatically. How can change the content of a diet template using code in D?



Reply via email to