Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpret string attribute values #8

Open
cressie176 opened this issue Jun 24, 2015 · 0 comments
Open

Interpret string attribute values #8

cressie176 opened this issue Jun 24, 2015 · 0 comments

Comments

@cressie176
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant