[][src]Macro reign::prelude::views

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

Auto load the views from the given directory.

Folder names should start with an alphabet and end with alphanumeric with underscores being allowed in the middle.

File names should start with an alphabet and end with alphanumeric with underscores being allowed in the middle. The only allowed extension is .html.

Ignores the other files and folders which do not adhere the above rules.

Both the folder and file names are converted to lower case before building the template.

Examples

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

views!("src", "views");