Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1.79 KB

D.md

File metadata and controls

56 lines (43 loc) · 1.79 KB

Alphabetical index of projects in D:

A B C D E F G
H I J K L M N
O P Q R S T U
V W X Y Z

T

Tilix is an advanced GTK3 tiling terminal emulator that follows the Gnome Human Interface Guidelines.

Screenshot

V

Vibe.d is a high-performance asynchronous I/O, concurrency and web application toolkit. It already contains many supplemental features such as database support to be able to offer a complete development environment. Vibe.d

Example of Usage:

import vibe.d;

void userInfo(HTTPServerRequest req, HTTPServerResponse res)
{
	auto username = req.params["user"];
	render!("userinfo.dt", username)(res);
}

void addUser(HTTPServerRequest req, HTTPServerResponse res)
{
	enforceHTTP("user" in req.form, HTTPStatus.badRequest, "Missing user field.");
	res.redirect("/users/"~req.form["user"]);
}

shared static this()
{
	auto router = new URLRouter;
	router.get("/users/:user", &userInfo);
	router.post("/adduser", &addUser);
	router.get("*", serveStaticFiles("./public/"));

	// To reduce code redundancy, you can also
	// use method chaining:
	router
		.get("/users/:user", &userInfo)
		.post("/adduser", &addUser)
		.get("*", serveStaticFiles("./public/"));

	listenHTTP(new HTTPServerSettings, router);
}