rustclamp-tooling 0.5.0

Developer inspection commands for resolved Clamp process models.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The base every controller starts from, like Laravel's `Controller`. Rust
//! has no inheritance: controllers are plain functions that begin with
//! `use super::controller::*;`. Put helpers every controller shares here.

//!
//! A controller that can fail returns `web::Result` and uses `?`: the error
//! is logged and the visitor gets a `500`.
//!
//! `Model` is here so `#[derive(Model)]` types answer `Post::query(...)`
//! and `Post::from_row` without a `use` in every controller.

pub use rustclamp::db::Model;
pub use rustclamp::web::{self, Request, Response, error, json, redirect, render, view};