Sha256: ce360fe78619b347c5e29166c04dfd5a9583f33be1da52c37f93f30345d0ced0

Contents?: true

Size: 794 Bytes

Versions: 2

Compression:

Stored size: 794 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", %{
      var x = 3;
    }

    my_macro
  end

  action :other do
    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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flok-0.0.102 spec/kern/assets/hook_entry_points/controller0.rb
flok-0.0.101 spec/kern/assets/hook_entry_points/controller0.rb