Añade función para crear handler único al compilar
Permite asignar automáticamente el "handler" a componentes, módulos, temas y acciones.
This commit is contained in:
parent
53668b8719
commit
b986bfcd13
33 changed files with 156 additions and 111 deletions
|
|
@ -11,12 +11,12 @@ static MDBOOK: LazyStatic<HashMap<&'static str, Resource>> = LazyStatic::new(||
|
|||
generate()
|
||||
);
|
||||
|
||||
pub const MODULE_MDBOOK: &str = "pagetop::website::module::mdbook";
|
||||
pub_const_handler!(MODULE_MDBOOK);
|
||||
|
||||
pub struct MdBook;
|
||||
|
||||
impl ModuleTrait for MdBook {
|
||||
fn handler(&self) -> &'static str {
|
||||
fn handler(&self) -> Handler {
|
||||
MODULE_MDBOOK
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue