small preparations

This commit is contained in:
Torsten Ruger 2015-08-20 16:07:44 +02:00
parent ef60cbdc45
commit ef1235d3e8
3 changed files with 17 additions and 18 deletions

View File

@ -24,22 +24,21 @@ class ClassView < ListView
end
def draw
div.classes do
h4 {"Classes"}
ul.nav do
#{{page._classes.each do |clas| }}
li do
a { "me "}
# <a href="#">{{ clas._name }}</a>
# {{ unless variables(clas).empty? }}
# <ul>
# {{variables(clas).each do |var| }}
# <li>
# <a href="#">{{var}}</a>
# </li>
# {{ end }}
# </ul>
end
div.classes do
h4 {"Classes"}
ul.nav do
#{{page._classes.each do |clas| }}
li do
a { "me "}
# <a href="#">{{ clas._name }}</a>
# {{ unless variables(clas).empty? }}
# <ul>
# {{variables(clas).each do |var| }}
# <li>
# <a href="#">{{var}}</a>
# </li>
# {{ end }}
# </ul>
end
end
end

View File

@ -1,6 +1,6 @@
class ElementView
def initialize
@element = nil
end
end

View File

@ -3,7 +3,7 @@ require "element_view"
class ListView < ElementView
def initialize
@elements = []
end
end