src/snorlogue/frontend/controllerUtils

Search:
Group by:
Source   Edit  

Small utility procs for frontend controllers. Anything that takes over small tasks of a frontendController proc

Procs

proc getPageSize(ctx: Context): int {....raises: [], tags: [RootEffect],
                                      forbids: [].}
Extracts the configured number of entries per page for pagination Defaults to 50 if nothing is set. Source   Edit  
proc renderNimjaPage[T: PageContext](pageName: static string; context: T): string
Renders the nimja template whose filename is provided via pageName with the provided context. Source   Edit