linkedin / linkedin/dustjs

Support generating inline partial blocks in a list

Open
#77 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
JavaScript
Stars
2.9k
Forks
461
PR merge metrics
No merged PRs in 30d

Description

Child template

{>base_template/}
  {#loop}
          {<"var_{$idx}"}
          {/"var_{$idx}"}
  {/loop}

Base template

  {#anotherloop}

          {+"var_{$idx}"}

  {#anotherloop}

for instance looping a list of items and each iteration of the item in a child template creates a different inline partial block ,

so this means a array.list of inline partial blocks can be created as we iterated.

Once created, we can reference the indexed inline partial block in the base template

is this good?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the child and base template examples and the proposed inline partial block syntax. Clarify how blocks created during list iteration should be named, stored, and referenced from the base template; the issue does not identify files, tests, or an implementation entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.