tower-directive-expression

## Installation

Directive Expression Compiler

node.js:

npm install tower-directive-expression

browser:

component install tower/directive-expression
var compile = require('tower-directive-expression');
var exp = compile('data-text', 'post[attr.name]');
console.log(exp.edges); // attribute chains to watch 

Watching content for changes.

var content = require('tower-content');
var scope = content('page').init({ title: 'foo' });
var el = document.querySelector('#title');
 
exp.watch(scope, function(){
  el.textContent = exp.fn(scope);
});

MIT