Sha256: ab883211c2de3e5651866498136c4bdf18d6bda3d410627b3f83a0a3164434e0
Contents?: true
Size: 402 Bytes
Versions: 14
Compression:
Stored size: 402 Bytes
Contents
module Awestruct module Hamlable def render(context) rendered = '' begin haml_engine = Haml::Engine.new( raw_page_content ) rendered = haml_engine.render( context ) rescue => e puts e puts e.backtrace end rendered end def content context = site.engine.create_context( self ) render( context ) end end end
Version data entries
14 entries across 14 versions & 1 rubygems