summaryrefslogtreecommitdiffhomepage
path: root/templates/default/headersroot/html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/default/headersroot/html')
-rw-r--r--templates/default/headersroot/html/headers_list.erb1
-rw-r--r--templates/default/headersroot/html/setup.rb10
2 files changed, 11 insertions, 0 deletions
diff --git a/templates/default/headersroot/html/headers_list.erb b/templates/default/headersroot/html/headers_list.erb
new file mode 100644
index 0000000..1b524aa
--- /dev/null
+++ b/templates/default/headersroot/html/headers_list.erb
@@ -0,0 +1 @@
+<h1>All headers</h1>
diff --git a/templates/default/headersroot/html/setup.rb b/templates/default/headersroot/html/setup.rb
new file mode 100644
index 0000000..5945ae4
--- /dev/null
+++ b/templates/default/headersroot/html/setup.rb
@@ -0,0 +1,10 @@
+def init
+ super
+ sections.push :headers_list
+
+ @namespace = object
+end
+
+def headers
+ object.headers
+end