Skip to content

Accept HTMLX from npm modules: JSON / Function / class #2

@jazzyjackson

Description

@jazzyjackson

Could be that : components can be required from file, which may be:

  • JSON graph
  • exported function that takes context and returns an object (more flexibility here to return conditionally)
  • class that you pass the context to, allowing more complex interpolation

ctxify could check, if string - require object, check if function, class, or object, and ctxify accordinly

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