Sha256: 879846dfd78fdbe391c174dc330235e9e55a4079441bc2fc234bafdbfe345346

Contents?: true

Size: 548 Bytes

Versions: 69

Compression:

Stored size: 548 Bytes

Contents

controller :my_controller do
  spots "hello", "world"

  action :my_action do
    on_entry %{
      var payload = {secret: context.secret};
      Embed("my_sub_controller", "hello", payload);
    }

    on "raise_res", %{
      //Sets after on_entry of my_sub_controller
      raise_res_context = params;
    }
  end
end

controller :my_sub_controller do
  spots "hello", "world"

  action :my_action do
    on_entry %{
      context.hello = "world"

      //This sends context to 'my_controller'
      Raise("raise_res", context);
    }
  end
end

Version data entries

69 entries across 69 versions & 1 rubygems

Version Path
flok-0.0.105 spec/kern/assets/raise_event.rb
flok-0.0.103 spec/kern/assets/raise_event.rb
flok-0.0.102 spec/kern/assets/raise_event.rb
flok-0.0.101 spec/kern/assets/raise_event.rb
flok-0.0.100 spec/kern/assets/raise_event.rb
flok-0.0.99 spec/kern/assets/raise_event.rb
flok-0.0.98 spec/kern/assets/raise_event.rb
flok-0.0.97 spec/kern/assets/raise_event.rb
flok-0.0.96 spec/kern/assets/raise_event.rb
flok-0.0.95 spec/kern/assets/raise_event.rb
flok-0.0.94 spec/kern/assets/raise_event.rb
flok-0.0.93 spec/kern/assets/raise_event.rb
flok-0.0.92 spec/kern/assets/raise_event.rb
flok-0.0.91 spec/kern/assets/raise_event.rb
flok-0.0.90 spec/kern/assets/raise_event.rb
flok-0.0.89 spec/kern/assets/raise_event.rb
flok-0.0.88 spec/kern/assets/raise_event.rb
flok-0.0.87 spec/kern/assets/raise_event.rb
flok-0.0.86 spec/kern/assets/raise_event.rb
flok-0.0.85 spec/kern/assets/raise_event.rb