Sha256: 3a833cc072868ba6486f2b11f9094acc846ab71b38cf9079d28b63022713361e
Contents?: true
Size: 416 Bytes
Versions: 10
Compression:
Stored size: 416 Bytes
Contents
def self.included host_class host_class.mattr_accessor :template_path host_class.extend Card::Set::Format::HamlPaths host_class.template_path = host_class.haml_template_path end def content File.read template_path end format :html do view :input do "Content is managed by code and cannot be edited" end def haml_locals {} end view :core do haml card.content, haml_locals end end
Version data entries
10 entries across 10 versions & 2 rubygems