Sha256: 47f1fec76c83dd0670e823b47dbce5643a68bab332b00d66e19d493e1deb3ab3

Contents?: true

Size: 1.36 KB

Versions: 7

Compression:

Stored size: 1.36 KB

Contents

controller :controller0 do
  services :vm
  spots "first", "second"

  action :index do
    on_entry %{
      //request page 'B' on frame0 of controller0
      var info = {
        ns: "spec",
        id: "B"
      }
      //get page B
      Request("vm", "read_sync", info);

      //embed controller1 & controler2
      Embed("controller1", "first", {});
      Embed("controller2", "second", {});
    }

    on "read_sync_res", %{
      controller0_read_sync_res = params;
    }
  end
end

controller :controller1 do
  services :vm

  action :index do
    on_entry %{
      controller1_base = __base__;
    }

    #action is dispatched on frame1
    on "get", %{
      //request page 'A' on frame1 of controller1
      var info = {
        ns: "spec",
        id: "A"
      }
      //get page A (again, read from cache)
      Request("vm", "read_sync", info);
    }

    on "read_sync_res", %{
      controller1_read_sync_res = params;
    }
  end
end

controller :controller2 do
  services :vm

  action :index do
    on_entry %{
      controller2_base = __base__;
    }

    #action is dispatched on frame1
    on "get", %{
      //request page 'B' on frame1 of controller2
      var info = {
        ns: "spec",
        id: "B"
      }

      //get page B
      Request("vm", "read_sync", info);
    }

    on "read_sync_res", %{
      controller2_read_sync_res = params;
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
flok-0.0.66 spec/kern/assets/vm/controller19g.rb
flok-0.0.65 spec/kern/assets/vm/controller19g.rb
flok-0.0.64 spec/kern/assets/vm/controller19g.rb
flok-0.0.63 spec/kern/assets/vm/controller19g.rb
flok-0.0.62 spec/kern/assets/vm/controller19g.rb
flok-0.0.61 spec/kern/assets/vm/controller19g.rb
flok-0.0.60 spec/kern/assets/vm/controller19g.rb