From 2989ba098620315e0e2d5c9fc11e6044e2fc02a3 Mon Sep 17 00:00:00 2001 From: Offray Luna Date: Mon, 25 Jul 2022 18:30:24 -0500 Subject: [PATCH] Migrating from GrafoscopioUtils. --- src/MiniDocs/LePage.extension.st | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/MiniDocs/LePage.extension.st b/src/MiniDocs/LePage.extension.st index 22c8129..df8f5f5 100644 --- a/src/MiniDocs/LePage.extension.st +++ b/src/MiniDocs/LePage.extension.st @@ -113,6 +113,19 @@ LePage >> metadata [ ^ self options at: 'metadata' ifAbsentPut: [ self metadataInit] ] +{ #category : #'*MiniDocs' } +LePage >> metadataInit [ + + ^ OrderedDictionary new + at: 'id' put: self uidString; + at: 'title' put: self contentAsString; + at: 'created' put: self createTime greaseString; + at: 'modified' put: self latestEditTime greaseString; + at: 'creator' put: self createEmail greaseString; + at: 'modifier' put: self editEmail greaseString; + yourself +] + { #category : #'*MiniDocs' } LePage >> options [ ^ options