~omasanori

Japan or somewhere else

https://www.brackets-salad.com/


#9 RSS feeds 1 year, 5 months ago

Comment by ~omasanori on ~jonsterling/forester

What a cool addition! I, however, found that I prefer a forest-scale feed to a bunch of tree-scale ones. Just a rough sketch, but what if we have a special metadata for output format selection (LaTeX and XML by default) and a tree with that metadata:

% feed.tree
\title{My Blog}
\author{johndoe}
\meta{output}{rss} % and/or atom, jsonfeed, latex, xml, ...

\scope{
  \query{
    \query/sortedby{date}
    \query/order{descending}
    \query/length{20}
    \query/and{
      \author{johndoe}
      \taxon{log}
    }
  }
}

(The above example contains some extensions to the query language, though.)

The current tree-scale ones can also be represented with:

\title{My Note}
\author{johndoe}
\meta{output}{rss}
\meta{output}{xml}

\p{...}
\transclude{...}

\meta{output} may be over-abstraction and \rss{true} may be enough.