mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-25 00:00:52 -04:00
DRY html modal and head
This commit is contained in:
@@ -10,6 +10,7 @@ macro layout(name)
|
||||
if token = env.session.string? "token"
|
||||
is_admin = @context.storage.verify_admin token
|
||||
end
|
||||
page = {{name}}
|
||||
render "src/views/#{{{name}}}.ecr", "src/views/layout.ecr"
|
||||
rescue e
|
||||
message = e.to_s
|
||||
|
||||
Reference in New Issue
Block a user