24 lines
465 B
Ruby
24 lines
465 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
doctype
|
||
|
html do
|
||
|
head do
|
||
|
title "Hello!"
|
||
|
meta charset: "utf-8"
|
||
|
meta name: "viewport", content: "width=device-width, initial-scale=1"
|
||
|
link rel: "stylesheet", href: "/test.css"
|
||
|
meta name: "created", content: created
|
||
|
end
|
||
|
|
||
|
body do
|
||
|
div(id: "content") do
|
||
|
div(class: "container") do
|
||
|
h1("Hello!")
|
||
|
numbers.each do |i|
|
||
|
div("This is div ##{i}")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|