 ruleset fuse_ifttt {
  meta {
    name "Fuse IFTTT Test App"
    description <<
Playing with Fuse IFTTT channel
    >>
    author "PJW"
    sharing on

    errors to b16x13

    use module b16x10 alias fuse_keys

    use module a169x676 alias pds
    use module b16x19 alias common
	
    provides router
  }

  global {

      router = function() {
        path = page:url("path").klog(">>> seeing this path >>> ");
	path        
      };

  }



}
// fuse_ifttt.krl

 ruleset fuse_ifttt {
  meta {
    name "Fuse IFTTT Test App"
    description <<
Playing with Fuse IFTTT channel
    >>
    author "PJW"
    sharing on

    errors to b16x13

    // use module b16x10 alias fuse_keys

    use module a169x676 alias pds
    use module b16x19 alias common
	
    provides router
  }

  global {

      process_path = function() {
        path = meta:uri().klog(">>> seeing this path >>> ");
	path.extract(re#/event/[^/]+/[^/]+/(.+)/(.+)#).klog(">>> returning these ops")
      };

  }

  rule router {
    select when fuse ifttt_incoming
    pre {
      ops = process_path();
    }
    


  }


}
// fuse_ifttt.krl
