From 48fb10fef522ab9262061bc612b44d74a8bda17d Mon Sep 17 00:00:00 2001 From: Seba Gamboa Date: Fri, 25 Sep 2015 13:12:22 -0300 Subject: Listing functions --- templates/default/function_details/html/function_signature.erb | 10 ++++++++++ templates/default/function_details/html/header.erb | 3 +++ templates/default/function_details/html/source.erb | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 templates/default/function_details/html/function_signature.erb create mode 100644 templates/default/function_details/html/header.erb create mode 100644 templates/default/function_details/html/source.erb (limited to 'templates/default/function_details/html') diff --git a/templates/default/function_details/html/function_signature.erb b/templates/default/function_details/html/function_signature.erb new file mode 100644 index 0000000..cbd318e --- /dev/null +++ b/templates/default/function_details/html/function_signature.erb @@ -0,0 +1,10 @@ +

+ <%= fsignature(object, false) %> + + <% if object.aliases.size > 0 %> + Also known as: + <%= object.aliases.map {|o| + "" + h(o.name.to_s) + "" }.join(", ") %> + + <% end %> +

diff --git a/templates/default/function_details/html/header.erb b/templates/default/function_details/html/header.erb new file mode 100644 index 0000000..2dd9d11 --- /dev/null +++ b/templates/default/function_details/html/header.erb @@ -0,0 +1,3 @@ +
+ <%= yieldall %> +
diff --git a/templates/default/function_details/html/source.erb b/templates/default/function_details/html/source.erb new file mode 100644 index 0000000..12740cb --- /dev/null +++ b/templates/default/function_details/html/source.erb @@ -0,0 +1,10 @@ + + + + + +
+
<%= "\n\n\n" %><%= h format_lines(object) %>
+
+
# File '<%= h object.file %>'<% if object.line %>, line <%= object.line %><% end %><%= "\n\n" %><%= html_syntax_highlight object.source %>
+
-- cgit v1.2.3