Sha256: 527c52496ef931e24decde5b36a5dc63bc4923b746b945e7299d66920a53c05c

Contents?: true

Size: 353 Bytes

Versions: 4

Compression:

Stored size: 353 Bytes

Contents

class GeneratedPagesBuilder < SiteBuilder
  def build
    generator do
      generated_page = Bridgetown::GeneratedPage.new(site, site.source, "/", "generated_page.erb")
      generated_page.content = "<%= 'created from a plugin'.capitalize %>"
      generated_page.data.layout = "default"

      site.generated_pages << generated_page
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bridgetown-sitemap-1.1.2 test/fixtures/plugins/builders/generated_pages_builder.rb
bridgetown-sitemap-1.1.1 test/fixtures/plugins/builders/generated_pages_builder.rb
bridgetown-sitemap-1.1.0 test/fixtures/plugins/builders/generated_pages_builder.rb
bridgetown-sitemap-1.0.0 test/fixtures/plugins/builders/generated_pages_builder.rb