vibe.d beta banner
get vibe.d
0.8.2

Asynchronous I/O that doesn’t get in your way, written in D

Module vibe.web.web

Implements a descriptive framework for building web interfaces.

This module contains the sister funtionality to the vibe.web.rest module. While the REST interface generator is meant for stateless machine-to-machine communication, this module aims at implementing user facing web services. Apart from that, both systems use the same declarative approach.

See registerWebInterface for an overview of how the system works.

Functions

NameDescription
redirect(url)Redirects to the given URL.
terminateSession()Terminates the currently active session (if any).
trWeb(text)Translates a text based on the language of the current web request.

Classes

NameDescription
WebInterfaceSettingsEncapsulates settings used to customize the generated web interface.

Structs

NameDescription
ErrorDisplayAttribute
SessionVarMaps a web interface member variable to a session field.

Templates

NameDescription
errorDisplayAttribute to customize how errors/exceptions are displayed.
registerWebInterfaceRegisters a HTTP/web interface based on a class instance.
renderRenders a Diet template file to the current HTTP response.
Authors

Sönke Ludwig

Copyright

© 2013-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.