Sha256: 35a1a366b76de39228b93a8980add98cdf65c296e18ab2efb6b4b8978a7578ed

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

controller :my_controller do
  services :vm

  action :my_action do
    on_entry %{
      var entry = {
        hello: "world"
      }

      page = NewPage("test");

      SetPageHead(page, "head");
      SetPageNext(page, "next");
      EntryInsert(page, 0, entry);


      var watch_info = {
        ns: "spec",
        id: "test"
      }

      var write_info = {
        ns: "spec",
        page: page
      };

      Request("vm", "write", write_info);
    }

    on "next", %{
      page2 = CopyPage(page);
      SetPageHead(page2, "head2");
      var write_info = {
        ns: "spec",
        page: page2
      };
      Request("vm", "write", write_info);
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flok-0.0.40 spec/kern/assets/vm/controller21.rb
flok-0.0.39 spec/kern/assets/vm/controller21.rb