Skip to content

IDEA: scroll parser which uses javascript template literals #158

@btheado

Description

@btheado

This is somewhat related to the particleExplorer discussion in #154, except instead here javascript template literals are used

displayBelowParticle
  templateLiteral
    <ul>
     <li>${this.get("field1")}</li>
     <li>${this.get("field2")}</li>
    </ul>
  templateLiteral scroll
    ul
     li ${this.get("field1")}
     li ${this.get("field2")}
someParticle
 field1 value1
 field2 value2

The subparticles of templateLiteral (without an atom following the cue) will be expanded as a normal javascript template literal. If the first atom is scroll, then it will be called using the tagged functon scroll (i.e. scroll`<subparticles here>` ). The scroll tagged function will convert to html, I guess.

In either case, some variable (like this) above will be set to allow access to the selected particle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions