Class: Views::Html
- Inherits:
-
Object
- Object
- Views::Html
- Includes:
- HtmlSlice
- Defined in:
- lib/roda/templates/front-end/app/views/html.rb
Instance Attribute Summary collapse
-
#foo ⇒ Object
readonly
for more component classes.
Instance Method Summary collapse
-
#initialize(t) ⇒ Html
constructor
A new instance of Html.
- #navbar ⇒ Object
Constructor Details
Instance Attribute Details
#foo ⇒ Object (readonly)
for more component classes
6 7 8 |
# File 'lib/roda/templates/front-end/app/views/html.rb', line 6 def foo @foo end |
Instance Method Details
#navbar ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/roda/templates/front-end/app/views/html.rb', line 13 def html_slice do div class: "navbar" do a "home", href: "/" a "foo/bar", href: "/foo/bar" end end end |