Skip to content

Component-level delimiter option #918

@yyx990803

Description

@yyx990803

In #915 it is pointed out that the global delimiter option makes an application with custom delimiters incompatible with 3rd-party components that assumes the default delimiter settings. The solution would be either

  • A: Allow components to define a component-level delimiter setting that overwrites the global, so that 3rd-party components that are intended to be generally reusable can lock down its own delimiters.

or

  • B: Remove the global delimiter setting and make it strictly component-level.

Option A is backwards compatible but it requires component authors to be aware of this requirement.

Option B is breaking and requires this option in every component that needs custom delimiters. However it should be noted that in most cases, the only component that needs a custom delimiter is the root instance in the HTML (so that it can be compatible with server-side templating languages that also uses mustaches)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions