From a5fc2c9ee95e38c9aa5b2cb64bc84ea90e314558 Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 24 Mar 2022 00:18:31 +0100 Subject: support facet attribute in --- mmm/mmmfs/builtins.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mmm/mmmfs/builtins.moon b/mmm/mmmfs/builtins.moon index 8c751dd..9bff97a 100644 --- a/mmm/mmmfs/builtins.moon +++ b/mmm/mmmfs/builtins.moon @@ -87,7 +87,7 @@ converts = { (html, fileder) => html = html\yieldable_gsub '(.-)', (attrs, text) -> text = nil if #text == 0 - path = '' + path, facet = '', '' while attrs and attrs != '' key, val, _attrs = attrs\match '^(%w+)="([^"]-)"%s*(.*)' if not key @@ -98,6 +98,7 @@ converts = { switch key when 'path' then path = val + when 'facet' then facet = val else warn "unkown attribute '#{key}=\"#{val}\"' in " link_to path, text, fileder -- cgit v1.2.3