m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/templated.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/templated.rb b/lib/templated.rb
index 9323903..a39990d 100644
--- a/lib/templated.rb
+++ b/lib/templated.rb
@@ -1,5 +1,5 @@
def template
- ERB.new(File.read(src 'template.html.erb'))
+ ERB.new(File.read(src 'template.html.erb'), trim_mode: '-')
end
def write_templated_file content_filename, options
@@ -14,7 +14,7 @@ def write_erb erb_filename
end
def write_templated_erb erb_filename, options
- content = ERB.new(File.read(src erb_filename)).result
+ content = ERB.new(File.read(src erb_filename), trim_mode: '-').result
cut_filename = erb_filename.sub /\.erb$/, ''
write_templated content, cut_filename, options
end