def login_html(env, options = {})
      login_base = env['SCRIPT_NAME'] + login_path(env)
      template = File.read(File.join(asset_root, 'login.html.erb'))
      ERB.new(template).result(binding)
    end
def login_html(env, options = {})
      login_base = env['SCRIPT_NAME'] + login_path(env)
      template = File.read(File.join(asset_root, 'login.html.erb'))
      ERB.new(template).result(binding)
    end
Provides the HTML for the login form.

 This method expects to find a `login.html.erb` ERB template in
 {#asset_root}.  The ERB template is evaluated in an environment where
 a local variable named `script_name` is bound to the value of the
 `SCRIPT_NAME` Rack environment variable, which is useful for CSS and
 form action URL generation.

 @param env [Rack environment] a Rack environment
 @param [Hash] options rendering options
 @option options [Boolean] :login_failed If true, will render a failure message
 @option options [Boolean] :logged_out If true, will render a logout notification
 @option options [String] :username Text for the username field
 @option options [String] :url A URL to redirect to upon successful login
 @return [String] HTML data