Sha256: afc8f5b927cda49b5e41016e1be1d4905d70bb4262279a4dbc9032b6b02bb280

Contents?: true

Size: 985 Bytes

Versions: 2

Compression:

Stored size: 985 Bytes

Contents

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

  macro :my_macro do
    on "foo", %{
    }

  end

  action :index do
    on_entry %{
      on_entry_base_pointer = __base__;
      Embed("my_other_controller", "hello", {});
    }

    on "hello", %{
      Goto("other");
    }

    my_macro
  end

  action :other do
    on_entry %{
      Embed("new_controller", "hello", {});
    }

    on "test", %{
    }
  end
end

controller :my_other_controller do
  action :index do
    on_entry %{
      my_other_controller_base = __base__;
    }

    on "back_clicked", %{
      Goto("other");
    }
  end

  action :other do
    on "next_clicked", %{
      Goto("other2");
    }
  end

  action :other2 do
    on "next_clicked", %{
      Goto("has_back_also");
    }
  end


  action :has_back_also do
    on "back_clicked", %{
      Goto("other");
    }
  end
end

controller :new_controller do
  action :index do
    on_entry %{
      new_controller_base = __base__;
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flok-0.0.105 spec/kern/assets/hook_entry_points/controller0.rb
flok-0.0.103 spec/kern/assets/hook_entry_points/controller0.rb