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

Namespace node replacement - pluggable filters #9

Open
lukevenediger opened this issue Jun 2, 2013 · 0 comments
Open

Namespace node replacement - pluggable filters #9

lukevenediger opened this issue Jun 2, 2013 · 0 comments
Milestone

Comments

@lukevenediger
Copy link
Owner

Namespaces can contain placeholders that will be replaced with an actual value, using a pluggable filter.

For example, foo.bar.{geo(city,45.2314,98.23145)}.baz - will invoke the geo plugin to extract the city name based on a latitude and longitude reading. Other plugin examples could be:

  • IP address geolocation
  • Acronym expansion
  • significant day replacement (e.g holiday names)

The plugin must replace a whole node, and will return one or more nodes.

The format for a plugin is:
{ plugin_name ( arg0, arg1 .. argN ) }

A plugin with zero arguments does not require parentheses:
{ plugin_name }

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