Templating.
| requires: | mako |
|---|
New in version 1.1.
Automatically reload templates which has been modified.
If this is set to None when the application start accepting requests, the application will set the value according to its own autoreload value.
| Default: | False |
|---|---|
| Type: | bool |
Limit cache size. 0 means no cache. -1 means no limit. Any positive value results in a LRU-approach.
| Default: | -1 |
|---|---|
| Type: | int |
Type of cache. “memory” or “string”.
| Default: | "memory" |
|---|---|
| Type: | string |
Let the templating engine render information about template formatting exceptions.
Things like missing or misspelled variables etc.
| Default: | True |
|---|---|
| Type: | bool |
| Default: | "utf-8" |
|---|---|
| Type: | string |
| Default: | ["unicode"] |
|---|---|
| Type: | list |
Map http error to a template path. Template URI mapped by status codes.
i.e.:
'smisk.mvc.template.errors': {
500: 'errors/server_error',
404: 'errors/not_found'
}
| Default: | {} |
|---|---|
| Type: | dict |
Templates.
| Returns: | template for the uri provided |
|---|---|
| Return type: | Template |