From baaa4f147e36f8f667557ee1c64c7240da624001 Mon Sep 17 00:00:00 2001 From: Qrius Date: Thu, 26 Sep 2024 00:11:05 +0200 Subject: Add sorting function to YamlValue, make it possible to sort in special macros, add special parsing for dates and numbers --- src/skaldpress/main.rs | 34 +++++++++++++++++++++++- src/skaldpress/metadata_parser.rs | 56 +++++++++++++++++++++++++++++++++++---- 2 files changed, 84 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/skaldpress/main.rs b/src/skaldpress/main.rs index 84a4285..45d0a78 100644 --- a/src/skaldpress/main.rs +++ b/src/skaldpress/main.rs @@ -33,6 +33,13 @@ struct CompiledFile { source_path: String, } +/// SMP Macro for processing input with a template +/// +/// This will keep state of the macro_processor from the document which invokes the macro. +/// No additional metadata will be added. +/// +/// Usage in files: +/// template(