module Typus

  module Generators

    class ViewsGenerator < Rails::Generators::Base

      source_root File.expand_path("../../../../app/views", __FILE__)

      desc <<-MSG
Description:
  Copies all Typus views to your application.

      MSG

      def copy_views
        directory "admin", "app/views/admin"
        directory "layouts/admin", "app/views/layouts/admin"
      end

    end

  end

end

module Typus

  module Generators

    class ViewsGenerator < Rails::Generators::Base

      source_root File.expand_path("../../../../app/views", __FILE__)

      desc <<-MSG
Description:
  Copies all Typus views to your application.

      MSG

      def copy_views
        directory "admin", "app/views/admin"
      end

      def copy_layouts
        directory "layouts", "app/views/layouts"
      end

    end

  end

end

Copy all layouts under the layouts folder.
Copy all layouts under the layouts folder.
