From a6b11a3bf098c673b7f1142be60f04a00885f5a7 Mon Sep 17 00:00:00 2001
From: Marcin Chrzanowski
Date: Sat, 27 Mar 2021 22:21:45 +0100
Subject: Use - trimming in ERB
---
src/blog.html.erb | 4 ++--
src/index.html.erb | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
(limited to 'src')
diff --git a/src/blog.html.erb b/src/blog.html.erb
index 7fb308e..c5ccee2 100644
--- a/src/blog.html.erb
+++ b/src/blog.html.erb
@@ -2,9 +2,9 @@
Subscribe with '>RSS
-<% posts.each do |post| %>
+<% posts.each do |post| -%>
-
><%= post['title'] %> <%= format_date post['date'] %>
-<% end %>
+<% end -%>
diff --git a/src/index.html.erb b/src/index.html.erb
index 536b15a..414b201 100644
--- a/src/index.html.erb
+++ b/src/index.html.erb
@@ -8,11 +8,11 @@
-<% posts.take(5).each do |post| %>
+<% posts.take(5).each do |post| -%>
-
'><%= post['title'] %> <%= format_date post['date'] %>
-<% end %>
+<% end -%>
--
cgit v1.2.3