Sha256: d73e6624d83b26c72024af361fd5a015ebddfedc1a934e6309cf0b0842f0f1e9

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

#!/usr/bin/env ruby

require "rubygems"
require "sinatra"
require "glowworm"

Ecology.read("example_server.ecology")

configure do
  set :port, "8087"
end

get "/" do
  if Glowworm.feature_flag(35, "new_signup_message", :ttl => 15)
    button_text = "join now for free?"
  else
    button_text = "sign up?"
  end

<<STATIC_PAGE
  <html>
    <head>
      <title>Feature Test App</title>
      <meta http-equiv="refresh" content="5">
    </head>
    <body>
      <h1> Feature Test App </h1>
      Why don't you <button>#{button_text}</button>
    </body>
  </html>
STATIC_PAGE
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glowworm-0.3.0 example/example_server.rb