Commit graph

15 commits

Author SHA1 Message Date
Jonathan Kelley
c79d9ae674 feat: buff up html allowed attributes 2021-07-12 23:44:20 -04:00
Jonathan Kelley
56e7eb83a9 wip: more examples 2021-07-11 19:31:07 -04:00
Jonathan Kelley
a38a81e129 wip: fix issues with lifetimes
this commit fixes some lifetime issues regarding having to "move" data into the IntoVNode closure.
2021-07-07 13:51:55 -04:00
Jonathan Kelley
81382e7044 chore: rename ctx to cx 2021-06-25 21:15:33 -04:00
Jonathan Kelley
70cd46dbb2 docs: move around examples 2021-06-17 18:00:32 -04:00
Jonathan Kelley
508c560320 Feat: massive changes to definition of components
This change switches back to the original `ctx<props>` syntax for
commponents. This lets lifetime elision to remove the need to match
exactly which lifetime (props or ctx) gets  carried to the output. As
such, `Props` is currently required to be static. It *is* possible to
loosen this restriction, and will be done in the future, though only
through adding metadata about the props through the Props derive
macro. Implementing the IS_STATIC trait is unsafe, so the derive macro
will do it through some heuristics.

For now, this unlocks sharing vnodes from parents to children, enabling
pass-thru components, fragments, portals, etc.
2021-06-01 18:33:15 -04:00
Jonathan Kelley
c28697e1fe Feat: some code health 2021-05-16 02:06:02 -04:00
Jonathan Kelley
9f7f43b661 Feat: building large apps, revamp macro 2021-03-22 23:52:54 -04:00
Jonathan Kelley
fcd68e61d2 Feat: listeners now have scope information 2021-03-03 11:13:46 -05:00
Jonathan Kelley
ffaf687896 Feat: update readme and examples 2021-03-01 00:16:48 -05:00
Jonathan Kelley
c8bb392cad Feat: view -> render 2021-02-28 21:21:17 -05:00
Jonathan Kelley
83451372aa Feat: clean up code 2021-02-24 01:32:50 -05:00
Jonathan Kelley
bdc25b581b Feat: finally solve the component lifetime problem <3 2021-02-20 22:57:13 -05:00
Jonathan Kelley
7a6aabe4f3 Feat: WIP ctx 2021-02-20 21:59:16 -05:00
Jonathan Kelley
125f5426a4 Feat: push new component API and context API 2021-02-11 23:03:01 -05:00