Skip to content

Allow passing child tags using splats #109

@rmehlinger

Description

@rmehlinger

Currently, we can pass child tags as either singletons, or as lists. It would be nice if we could pass splats as well.

R.h1 "Hello"
R.h2 {class: 'red'}, "world"
R.p [
  "Lorem Ipsum "
  "dolor sit amet"
  "consecteteur"
]

It would be nice if we could pass child tags as splats:

R.p "Lorem Ipsum", "dolor sit amet", consecteteur"

This is especially useful because it reduces the visual clutter when writing vanilla JS instead of CoffeeScript, as one no longer needs to include square brackets on top of the (now required) parentheses:

R.p("Lorem Ipsum", "dolor sit amet", consecteteur")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions