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
|
|
@ -1,6 +1,6 @@
|
|||
use pagetop::prelude::*;
|
||||
|
||||
pub const MODULE_NODE: &str = "pagetop-node::module::node";
|
||||
pub_const_handler!(MODULE_NODE);
|
||||
|
||||
localize!("src/locales");
|
||||
|
||||
|
|
@ -10,7 +10,7 @@ mod migration;
|
|||
pub struct Node;
|
||||
|
||||
impl ModuleTrait for Node {
|
||||
fn handler(&self) -> &'static str {
|
||||
fn handler(&self) -> Handler {
|
||||
MODULE_NODE
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue