From fa33a00a9f2cbd6eceb2c4a2e2a83e799e1f847f Mon Sep 17 00:00:00 2001 From: Ryan Waldron Date: Wed, 13 Jun 2012 14:52:16 -0500 Subject: Add title to paragraph template --- lib/waldo/asciidoc/render_templates.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/waldo/asciidoc/render_templates.rb b/lib/waldo/asciidoc/render_templates.rb index 4bd7a2d1..ecd1959f 100644 --- a/lib/waldo/asciidoc/render_templates.rb +++ b/lib/waldo/asciidoc/render_templates.rb @@ -124,6 +124,9 @@ class SectionParagraphTemplate < BaseTemplate def template @template ||= ERB.new <<-EOF
+ <% if !title.nil? %> +
<%= title %>
+ <% end %>

<%= content %>

EOF -- cgit v1.2.3