Skip to content

Interpret string attribute values #8

@cressie176

Description

@cressie176

Keep the existing behaviour...

{
   _task: '@some.value.in.context'
}

Deprecate

{
   _task: {
     template: '{{some.value.in.context}}'
}

In favour of

{
   _task: '{{some.value.in.context}}'
}

And in addition support

{
   _task: '[hbs]{{some.value.in.context}}[/hbs] = [eval]1 + 2[/eval]'
}

Where:

  • hbs identifies a handlebars template
  • eval will invoke javascript eval

These should be extendable to include new tags / processors.

Do not interpret attribute names beginning with np_ e.g. np_message and reserved attribute names with np e.g. _np_task

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