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

Version Path
card-mod-content-0.11.4 set/abstract/haml_file.rb
card-mod-content-0.11.3 set/abstract/haml_file.rb
card-mod-content-0.11.2 set/abstract/haml_file.rb
card-mod-content-0.11.1 set/abstract/haml_file.rb
card-mod-content-0.11.0 set/abstract/haml_file.rb
card-1.100.0 mod/core/set/abstract/haml_file.rb
card-1.99.6 mod/core/set/abstract/haml_file.rb
card-1.99.5 mod/core/set/abstract/haml_file.rb
card-1.99.4 mod/core/set/abstract/haml_file.rb
card-1.99.3 mod/core/set/abstract/haml_file.rb