summaryrefslogtreecommitdiffhomepage
path: root/templates/default/header/html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default/header/html')
-rw-r--r--templates/default/header/html/function_summary.erb6
-rw-r--r--templates/default/header/html/setup.rb15
2 files changed, 16 insertions, 5 deletions
diff --git a/templates/default/header/html/function_summary.erb b/templates/default/header/html/function_summary.erb
new file mode 100644
index 0000000..037daa4
--- /dev/null
+++ b/templates/default/header/html/function_summary.erb
@@ -0,0 +1,6 @@
+<ul class="summary">
+
+ <% function_listing.each do |func| %>
+ <%= yieldall :item => func %>
+ <% end %>
+</ul>
diff --git a/templates/default/header/html/setup.rb b/templates/default/header/html/setup.rb
index 757657d..6e5f8f9 100644
--- a/templates/default/header/html/setup.rb
+++ b/templates/default/header/html/setup.rb
@@ -1,10 +1,15 @@
def init
- puts "header!"
- puts object.inspect
super
sections.push :header
- sections.push :functions
-rescue => error
- puts error
+ sections.push :function_summary
end
+
+
+def function_listing
+ return @funcs if @funcs
+
+ @funcs = object.functions
+ @funcs
+end
+