ee-soa-rule-manager

    0.1.13 • Public • Published

    ee-soa-rule-manager

    Rewriterule Generator for ee-soa

    installation

    npm install ee-soa-rule-manager
    

    build status

    Build Status

    usage

    var   RuleManager	 	= require('ee-soa-rule-manager')
    	, rulesManager 	 	= new RuleManager()
    	, Rule 				= rules.Rule;
    
    
    // configuring a rule via its contructor
    new Rule({
    	  inherits: anotherRule
    	, ensure: {
    		range: '0-20'
    	}
    });
    
    // inheritance
    var baseRule = new Rule().domain('j.b');
    
    var frontPage = new Rule(baseRule)
    	.ensure('select', '*')
    	.override('range', '0-10')
    	.append('filter', 'x=3')
    	.path('/event')
    	.template('/index.html');
    
    var detailPage = new Rule()
    	.inherit(frontPage)
    	.template('/detail.html');
    
    
    // getting rules
    var rulesArray = detailPage.getRules();
    
    var allRules = rulesManager.getRules();

    Install

    npm i ee-soa-rule-manager

    DownloadsWeekly Downloads

    0

    Version

    0.1.13

    License

    MIT

    Last publish

    Collaborators

    • ee