From 71427fad1796024194a70a58f4952f71fd837503 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 12 Jun 2014 22:48:56 -0700 Subject: [PATCH] Skip function list render if no functions defined If a module does not define any functions, skip rendering the "Functions" section in the "Puppet Plugins List". --- .../templates/default/fulldoc/html/full_list_puppet_plugin.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/puppetx/yardoc/yard/templates/default/fulldoc/html/full_list_puppet_plugin.erb b/lib/puppetx/yardoc/yard/templates/default/fulldoc/html/full_list_puppet_plugin.erb index 91c04b2..a8692c9 100644 --- a/lib/puppetx/yardoc/yard/templates/default/fulldoc/html/full_list_puppet_plugin.erb +++ b/lib/puppetx/yardoc/yard/templates/default/fulldoc/html/full_list_puppet_plugin.erb @@ -1,3 +1,4 @@ +<% unless P(:root, 'ParserFunctions').is_a?(CodeObjects::Proxy) %>
  • <%= link_object(P(:root, 'ParserFunctions'), 'Parser Functions', nil, false) %> @@ -6,3 +7,4 @@ +<% end %>