rikulo_el 0.5.2+1 copy "rikulo_el: ^0.5.2+1" to clipboard
rikulo_el: ^0.5.2+1 copied to clipboard

outdatedDart 1 only

Rikulo EL is an implementation of the Unified Expression Language specification plus enhancements for and in Dart.

#Rikulo EL

Rikulo EL is an implementation of the Unified Expression Language specification plus enhancements for and in Dart.

Rikulo EL is distributed under the Apache 2.0 License.

Build Status

##Install from Dart Pub Repository

Add this to your pubspec.yaml (or create it):

dependencies:
  rikulo_el:

Then run the Pub Package Manager (comes with the Dart SDK):

pub install

##Install from Github for Bleeding Edge Stuff

To install stuff that is still in development, add this to your pubspec.yam:

dependencies:
  rikulo_el:
    git: git://github.com/rikulo/el.git

For more information, please refer to Pub: Dependencies.

##Usage

Using Rikulo EL is straightforward.

import 'dart:mirrors' show reflect;
import "package:rikulo_el/el.dart";

class Person {
  String name;
  Person(this.name);
}
Person person = new Person('Rikulo');

class _FunctionMapper extends FunctionMapper {
  Function resolveFunction(String name)
  => name == "owner" ? () => person: null;
}

void main() {
  ValueExpression expr = new ExpressionFactory().createValueExpression(
    new ELContext(functionMapper: new _FunctionMapper()),
    'Hello, #{owner().name}!', reflect('').type);
  print(expr.getValue(ctx)); //'Hello, Rikulo!'
}

For more examples, please refer to here, here and here.

##Notes to Contributors

###Test and Debug

You are welcome to submit bugs and feature requests. Or even better if you can fix or implement them!

###Create Addons

Rikulo is easy to extend. The simplest way to enhance Rikulo is to create a new repository and add your own great widgets and libraries to it.

###Fork Rikulo

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Rikulo's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

0
likes
0
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

Rikulo EL is an implementation of the Unified Expression Language specification plus enhancements for and in Dart.

Homepage

License

unknown (license)

Dependencies

js, rikulo_commons, unittest

More

Packages that depend on rikulo_el