From 1f953f6cb179947b8ba3ce1358a0ef52e626af06 Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Wed, 13 Jan 2016 18:10:16 +0100 Subject: [PATCH] Trim all ERB by default (thanks @railsbros_dirk)! --- README.org | 3 +-- README.org.erb | 3 ++- Rakefile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index fe58797..2bcc897 100644 --- a/README.org +++ b/README.org @@ -2,7 +2,6 @@ * My Talks - - [[file:2016-01-munich-rubyshift/][2016-01-munich-rubyshift/]] - [[file:2015-12-munich-rubyshift/][2015-12-munich-rubyshift/]] - [[file:2015-11-munich-rubyshift/][2015-11-munich-rubyshift/]] @@ -36,4 +35,4 @@ Unless noted otherwise, all content in this repository is free for you to use under the terms of the [[http://creativecommons.org/licenses/by-sa/4.0/][Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)]] license. -Generated: 2016-01-13 17:25:51 +0100 +Generated: 2016-01-13 18:09:32 +0100 diff --git a/README.org.erb b/README.org.erb index 259dd57..804b565 100644 --- a/README.org.erb +++ b/README.org.erb @@ -3,7 +3,8 @@ * My Talks <% talks.each do |talk| %> -- [[file:<%= talk %>][<%= talk %>]]<% end %> +- [[file:<%= talk %>][<%= talk %>]] +<% end %> This is a (non-comprehensive) list of talks I gave at various user groups & conferences. If you have any questions, feel free to reach diff --git a/Rakefile b/Rakefile index dd213f2..c58700c 100644 --- a/Rakefile +++ b/Rakefile @@ -35,7 +35,7 @@ end task :index do README = File.read('README.org.erb') - index = ERB.new(README).result(binding) + index = ERB.new(README, nil, "<>").result(binding) File.open('README.org', 'w') {|f| f.write(index) } @logger.info("Rebuilt ORG index.") dontbotherme("emacs --batch -l ~//.emacs.d/init.el --visit=README.org --funcall org-html-export-to-html")