Sha256: 5350d5714eefb32ac90e949d60957b74ccfd770ac73645139595a263053c7c72

Contents?: true

Size: 297 Bytes

Versions: 92

Compression:

Stored size: 297 Bytes

Contents

module Brief::Document::Templating
  extend ActiveSupport::Concern

  def generate_content
    model_class.generate_template_content_from(@frontmatter)
  end

  module ClassMethods
    def create_from_data(data = {})
      data = data.to_mash if data.is_a?(Hash)
      new(data)
    end
  end
end

Version data entries

92 entries across 92 versions & 1 rubygems

Version Path
brief-1.15.2 lib/brief/document/templating.rb
brief-1.15.1 lib/brief/document/templating.rb
brief-1.15.0 lib/brief/document/templating.rb
brief-1.14.3 lib/brief/document/templating.rb
brief-1.14.2 lib/brief/document/templating.rb
brief-1.14.1 lib/brief/document/templating.rb
brief-1.14.0 lib/brief/document/templating.rb
brief-1.13.2 lib/brief/document/templating.rb
brief-1.13.1 lib/brief/document/templating.rb
brief-1.12.9 lib/brief/document/templating.rb
brief-1.12.8 lib/brief/document/templating.rb
brief-1.12.7 lib/brief/document/templating.rb
brief-1.12.6 lib/brief/document/templating.rb
brief-1.12.5 lib/brief/document/templating.rb
brief-1.12.4 lib/brief/document/templating.rb
brief-1.12.3 lib/brief/document/templating.rb
brief-1.12.2 lib/brief/document/templating.rb
brief-1.12.1 lib/brief/document/templating.rb
brief-1.12.0 lib/brief/document/templating.rb
brief-1.11.10 lib/brief/document/templating.rb