Class: Stack::Templates::Page

Inherits:
Object
  • Object
show all
Includes:
Parsable, Stack::Template
Defined in:
lib/stack/templates/page.rb

Instance Attribute Summary

Attributes included from Parsable

#data, #inline_data, #raw

Attributes included from Stack::Template

#basename, #extension, #generator, #original_extension, #path, #raw

Instance Method Summary collapse

Methods included from Parsable

#extract_yaml, #parse!

Methods included from Stack::Template

#read, #render, #template_payload, #to_hash, #transform, #write!, #write_basename, #write_filename, #write_path

Constructor Details

#initialize(*args) ⇒ Page

Returns a new instance of Page.



7
8
9
10
11
# File 'lib/stack/templates/page.rb', line 7

def initialize(*args)
  super
  
  parse!
end

Instance Method Details

#payloadObject



13
14
15
# File 'lib/stack/templates/page.rb', line 13

def payload
  super
end