summaryrefslogtreecommitdiffhomepage
path: root/templates/default/header
diff options
context:
space:
mode:
authorSeba Gamboa <[email protected]>2015-09-24 18:25:12 -0300
committerSeba Gamboa <[email protected]>2015-09-24 18:25:12 -0300
commitc1f2404de71e9a8f73271b05f59a225728212069 (patch)
treeb4f3842661dd6edd38c594579335e1ae5ea61f33 /templates/default/header
parentcc49ade5e7029e4d8d8d62b7c09590042b43d65d (diff)
downloadyard-mruby-c1f2404de71e9a8f73271b05f59a225728212069.tar.gz
yard-mruby-c1f2404de71e9a8f73271b05f59a225728212069.zip
Generating C API HTML Layout
Diffstat (limited to 'templates/default/header')
-rw-r--r--templates/default/header/html/functions.erb1
-rw-r--r--templates/default/header/html/header.erb1
-rw-r--r--templates/default/header/html/setup.rb10
3 files changed, 12 insertions, 0 deletions
diff --git a/templates/default/header/html/functions.erb b/templates/default/header/html/functions.erb
new file mode 100644
index 0000000..d5a7f72
--- /dev/null
+++ b/templates/default/header/html/functions.erb
@@ -0,0 +1 @@
+Header functions!
diff --git a/templates/default/header/html/header.erb b/templates/default/header/html/header.erb
new file mode 100644
index 0000000..dec59ee
--- /dev/null
+++ b/templates/default/header/html/header.erb
@@ -0,0 +1 @@
+<h1><%= format_object_title(object) %></h1>
diff --git a/templates/default/header/html/setup.rb b/templates/default/header/html/setup.rb
new file mode 100644
index 0000000..757657d
--- /dev/null
+++ b/templates/default/header/html/setup.rb
@@ -0,0 +1,10 @@
+def init
+ puts "header!"
+ puts object.inspect
+ super
+
+ sections.push :header
+ sections.push :functions
+rescue => error
+ puts error
+end