Añade módulo User y componentes para formularios

This commit is contained in:
Manuel Cillero 2022-02-20 23:01:11 +01:00
parent 1d438dff57
commit d38df3a5b6
21 changed files with 1228 additions and 26 deletions

View file

@ -37,14 +37,12 @@ impl PageComponent for Chunck {
impl Chunck {
// Chunck BUILDER.
pub fn markup(markup: Markup) -> Self {
let mut chunck = Chunck::prepare();
chunck.markup.push(markup);
chunck
Chunck::prepare().add_markup(markup)
}
// Chunck BUILDER.
pub fn with_renderable(mut self, renderable: fn() -> bool) -> Self {
self.renderable = renderable;
self