[][src]Macro reign::prelude::render

render!() { /* proc-macro */ }

Shorthand notation for rendering a view.

Examples

Render the given view

This example is not tested
use reign::prelude::*;

render!(pages::home)

You can also specify a status code

This example is not tested
use reign::prelude::*;

render!(pages::home, status = 201)