class WelcomeController < ApplicationController
  def index
    render :index_fast
  end

  def lazyload_turbo_frame
    name = params[:name]
    name.gsub!("/", "")
    name.gsub!(".", "")
    file = Rails.root.join("app/views/blocks/sections/photonicat/_#{name}.html.erb")
    if file.exist?
      render partial: "/blocks/sections/photonicat/#{name}", layout: false
    else
      render :file => "#{Rails.root}/public/404.html",  :status => 404, layout: false
    end
  end

  def comming_soon
    render layout: false
  end

end
