class Hamloft::Template
Attributes
doc[RW]
haml[RW]
html[RW]
Public Class Methods
new(haml, html)
click to toggle source
# File lib/hamloft/template.rb, line 5 def initialize(haml, html) self.haml = haml self.html = html self.doc = Nokogiri::HTML.fragment(self.html) end
Public Instance Methods
chunks()
click to toggle source
# File lib/hamloft/template.rb, line 11 def chunks [] end
container() { |block| ... }
click to toggle source
# File lib/hamloft/template.rb, line 15 def container(&block) yield(block) end
process_chunk(_chunk)
click to toggle source
# File lib/hamloft/template.rb, line 19 def process_chunk(_chunk) nil end