Sha256: c2b3e6e14ad1205bd3972c40712fcfc0ec8ef9bcb96babfa304c3baa175e8630

Contents?: true

Size: 585 Bytes

Versions: 16

Compression:

Stored size: 585 Bytes

Contents

controller :my_controller do
  view :test_view
  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
  view :test_view2
  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

16 entries across 16 versions & 1 rubygems

Version Path
flok-0.0.31 spec/kern/assets/raise_event.rb
flok-0.0.30 spec/kern/assets/raise_event.rb
flok-0.0.29 spec/kern/assets/raise_event.rb
flok-0.0.28 spec/kern/assets/raise_event.rb
flok-0.0.27 spec/kern/assets/raise_event.rb
flok-0.0.26 spec/kern/assets/raise_event.rb
flok-0.0.25 spec/kern/assets/raise_event.rb
flok-0.0.24 spec/kern/assets/raise_event.rb
flok-0.0.23 spec/kern/assets/raise_event.rb
flok-0.0.21 spec/kern/assets/raise_event.rb
flok-0.0.20 spec/kern/assets/raise_event.rb
flok-0.0.19 spec/kern/assets/raise_event.rb
flok-0.0.18 spec/kern/assets/raise_event.rb
flok-0.0.17 spec/kern/assets/raise_event.rb
flok-0.0.16 spec/kern/assets/raise_event.rb
flok-0.0.14 spec/kern/assets/raise_event.rb