🍱 Incorpora el conjunto "minimal" de componentes
This commit is contained in:
parent
ee46003c15
commit
c657970b5a
9 changed files with 32 additions and 10 deletions
|
|
@ -14,9 +14,10 @@ repository = "https://github.com/manuelcillero/pagetop"
|
|||
license = "Apache-2.0 OR MIT"
|
||||
|
||||
[dependencies]
|
||||
pagetop = { path = "../pagetop", version = "0.0" }
|
||||
pagetop = { version = "0.0", path = "../pagetop" }
|
||||
pagetop-minimal = { version = "0.0", path = "../pagetop-minimal" }
|
||||
static-files = "0.2.3"
|
||||
maud = "0.25.0"
|
||||
|
||||
[build-dependencies]
|
||||
pagetop-build = { path = "../pagetop-build", version = "0.0" }
|
||||
pagetop-build = { version = "0.0", path = "../pagetop-build" }
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
use pagetop::prelude::*;
|
||||
use pagetop_minimal::component::*;
|
||||
|
||||
pub_handle!(MODULE_DEMOHOME);
|
||||
|
||||
|
|
@ -21,6 +22,10 @@ impl ModuleTrait for HomeDemo {
|
|||
Some(l("module_description"))
|
||||
}
|
||||
|
||||
fn dependencies(&self) -> Vec<ModuleStaticRef> {
|
||||
vec![&pagetop_minimal::Minimal]
|
||||
}
|
||||
|
||||
fn configure_service(&self, cfg: &mut server::web::ServiceConfig) {
|
||||
serve_static_files!(cfg, "/homedemo", bundle_homedemo);
|
||||
cfg.route("/", server::web::get().to(demo));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue