Sha256: 89ec9e498da27d2c0fe40bda5062d5643185439a370d2771f498b1e3f0930e3a

Contents?: true

Size: 439 Bytes

Versions: 1

Compression:

Stored size: 439 Bytes

Contents

require 'taza/generators/base'

module Taza
  module Generators
    class Page < Base
      attr_accessor :file_name
      def initialize(file_name,site_name)
        @file_name = file_name
        @site_name = site_name
      end

      def folder_path
        File.join('lib','sites')
      end

      def generate
        file "page.rb.erb", File.join(folder_path, @site_name, "pages",  "#{@file_name}.rb")
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taza-0.5.0 lib/taza/generators/page.rb