Sha256: 30d3f7517779d5f4f215dadfca1ee45d97aa6707b098ad2a5c01d51f7869cc1f

Contents?: true

Size: 877 Bytes

Versions: 3

Compression:

Stored size: 877 Bytes

Contents

require 'eucalypt/blog/namespaces/blog/__base__'

module Eucalypt
  module Generators
    class Blog < Thor::Group
      def views
        config = {erb: ["<%= application :css, :js %>","<%= yield %>"]}
        template File.join('views','article_layout.erb'), File.join('app','views','layouts','blog','article.erb'), config
        template File.join('views','articles_layout.erb'), File.join('app','views','layouts','blog','articles.erb'), config

        config = {erb: "<%= content %>"}
        template File.join('views','article.erb'), File.join('app','views','blog','article.erb'), config

        config = {erb: "<%= @articles %>"}
        template File.join('views','articles.erb'), File.join('app','views','blog','articles.erb'), config
        template File.join('views','search.erb'), File.join('app','views','blog','search.erb'), config
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eucalypt-0.3.2 lib/eucalypt/blog/namespaces/blog/generators/views.rb
eucalypt-0.3.1 lib/eucalypt/blog/namespaces/blog/generators/views.rb
eucalypt-0.3.0 lib/eucalypt/blog/namespaces/blog/generators/views.rb