From: Dietmar Maurer <dietmar@proxmox.com>
To: Thomas Lamprecht <t.lamprecht@proxmox.com>,
Dominik Csapak <d.csapak@proxmox.com>,
yew-devel@lists.proxmox.com
Subject: Re: [PATCH yew-widget-toolkit v2] widget: add 'div' macro
Date: Tue, 7 Apr 2026 10:49:16 +0200 [thread overview]
Message-ID: <72bd3973-955d-41a2-a735-9ebf3a3b98f2@proxmox.com> (raw)
In-Reply-To: <3570c013-8109-45cb-a054-7072fcea559e@proxmox.com>
So far, I always found a way to restructure the rust code to make it
readable,
so Container::new().with_child("TEXT") was never a real problem.
But I have to agree that it is too verbose. Maybe just a function named
"div"?
fn div(child: Into<Html>) -> Container { ... }
> And it isn't exactly a plain div, as then one could just use the html!
> macro from yew, so the name as is, is IMO not totally ideal. If we go
> the macro way (what's Dietmars opinion on this?), I'd favor to call it
> container! to better reflect that it uses the pwt container class.
>
next prev parent reply other threads:[~2026-04-07 8:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 13:42 Dominik Csapak
2026-04-05 9:08 ` Thomas Lamprecht
2026-04-07 7:48 ` Dominik Csapak
2026-04-07 8:49 ` Dietmar Maurer [this message]
2026-04-07 9:13 ` Thomas Lamprecht
2026-04-07 13:12 ` superseded: " Dominik Csapak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72bd3973-955d-41a2-a735-9ebf3a3b98f2@proxmox.com \
--to=dietmar@proxmox.com \
--cc=d.csapak@proxmox.com \
--cc=t.lamprecht@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.