Sha256: d872d6c092120d5be010937313b4bf85216b717c80d0999f7e4b860da162ed98

Contents?: true

Size: 886 Bytes

Versions: 7

Compression:

Stored size: 886 Bytes

Contents

require 'eucalypt/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

7 entries across 7 versions & 1 rubygems

Version Path
eucalypt-0.2.2 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.2.1 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.2.0 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.1.3 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.1.2 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.1.1 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb
eucalypt-0.1.0 lib/eucalypt/eucalypt-blog/namespaces/blog/generators/views.rb