umpteenth time's the charm

This commit is contained in:
Aleks Rūtiņš 2025-02-14 03:19:26 +00:00
parent d5747ea69c
commit f6c113102d

View file

@ -4,14 +4,14 @@ class Pages::GoMod < ::Phlex::HTML
@repo = repo
end
def view_template
render ::Pages::Layout.new({title: import}, meta: {
"go-import" => "#{import} git #{repo}"
render ::Pages::Layout.new({title: @import}, meta: {
"go-import" => "#{@import} git #{@repo}"
}) {
p {
h1 { @import }
p {
plain "This is a generated page to host the Go module located at "
a(href: repo) { repo }
a(href: @repo) { @repo }
plain ". You'll probably find more information about it over there."
}
}