Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add nesting and loops #9

Merged
merged 12 commits into from
Jun 4, 2023
Merged

add nesting and loops #9

merged 12 commits into from
Jun 4, 2023

Conversation

18alantom
Copy link
Owner

@18alantom 18alantom commented May 28, 2023

Reference: ROADMAP.md#nested-components

TLDR:

<!-- List of Objects including Other Lists -->
<div sb-mark="list.#">
  <p sb-mark="list.#.name"></p>

  <!-- Nested List -->
  <div sb-mark="list.#.sublist.#">
    <p sb-mark="list.#.sublist.#.name"></p>
  </div>
</div>

<script>
  data.list = [
    { name: 'one', sublist: [ { name: 'one.one' } ] }
  ]
</script>

It also refactors the usage of components to be more native instead of relying brittle shim code.

- updated combination of getChild and mark sub funcs
- should support loops on completion
- this is still flawed but getting there
- that was a sub-optimal path
- now resorting to more native methods
- placeholders will be stored in templates
- fix list overwriting and lost placeholder bug
- for both the clone and its chilren
- updated insert array elements (w.i.p)
- update general tests
- display all tests in tests/index.html
- convert computed return to reactive
@18alantom 18alantom marked this pull request as ready for review June 4, 2023 14:28
@18alantom 18alantom changed the title add support for nesting and loops add nesting and loops Jun 4, 2023
@18alantom 18alantom merged commit 92524ec into main Jun 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant