class StyleguideController < ApplicationController
  def index
  end

  def base
  end

  def pages_input
    render template: 'styleguide/pages/input'
  end

  def pages_output
    respond_to do |format|
      format.pdf do
        render pdf: 'pension_wise', encoding: 'utf-8', template: 'styleguide/pages/output'
      end
    end
  end

  def pages_input_v2
    render template: 'styleguide/pages/input_v2'
  end

  def pages_output_v2
    render template: 'styleguide/pages/output_v2'
  end
end

class StyleguideController < ApplicationController
  def index
  end

  def base
  end

  def pages_input
    render template: 'styleguide/pages/input'
  end

  def pages_output
    respond_to do |format|
      format.html { render template: 'styleguide/pages/output.pdf' }
      format.pdf do
        render pdf: 'pension_wise', encoding: 'utf-8', template: 'styleguide/pages/output'
      end
    end
  end

  def pages_input_v2
    render template: 'styleguide/pages/input_v2'
  end

  def pages_output_v2
    render template: 'styleguide/pages/output_v2'
  end
end

Allow output document to be rendered as html in styleguide
Allow output document to be rendered as html in styleguide
