Add markdown to html
This commit is contained in:
1 parent
5fee20ef9e
commit
145dd95b24
8 files changed
+188
-87
No files matched your search
@@ -3,6 +3,7 @@ require "roda"
|
||||
require_relative "config/mail"
|
||||
require_relative "lib/contact_form"
|
||||
require_relative "lib/contact_mailer"
|
||||
require_relative "lib/document_renderer"
|
||||
|
||||
class Netig < Roda
|
||||
plugin :render, escape: true
|
||||
@@ -25,12 +26,24 @@ class Netig < Roda
|
||||
view "index"
|
||||
end
|
||||
|
||||
r.get "statutes" do
|
||||
@page_title = "Statuts — NETig"
|
||||
@page_description = "Statuts de l'association NETig."
|
||||
@canonical_url = "https://netig.net/statutes"
|
||||
|
||||
@document_html = DocumentRenderer.render(:statutes)
|
||||
|
||||
view "document"
|
||||
end
|
||||
|
||||
r.get "legal" do
|
||||
@page_title = "Mentions légales — NETig"
|
||||
@page_description = "Mentions légales de l'association NETig."
|
||||
@canonical_url = "https://netig.net/legal"
|
||||
|
||||
view "legal"
|
||||
@document_html = DocumentRenderer.render(:legal)
|
||||
|
||||
view "document"
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user