summaryrefslogtreecommitdiff
path: root/new/lib/crys/processors/html_processor.rb
diff options
context:
space:
mode:
Diffstat (limited to 'new/lib/crys/processors/html_processor.rb')
-rw-r--r--new/lib/crys/processors/html_processor.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/new/lib/crys/processors/html_processor.rb b/new/lib/crys/processors/html_processor.rb
index d5ea73d..bcc9768 100644
--- a/new/lib/crys/processors/html_processor.rb
+++ b/new/lib/crys/processors/html_processor.rb
@@ -14,21 +14,20 @@ module Crys
@assets = []
end
- def to_html
+ def parsed_content
html_file = ERB.new(File.read(file_path))
html_file.result(local_binding)
end
-
def filename
file_path.scan(/.*\/(.*)\.erb/).flatten.first
end
- attr_reader :assets
+ attr_reader :assets, :file_path
private
- attr_reader :file_path, :image_dir
+ attr_reader :image_dir
attr_writer :assets
def local_binding