emanote-1.0.0.0: Emanate a structured view of your plain-text notes
Safe HaskellSafe-Inferred
LanguageHaskell2010

Emanote.Model.Meta

Synopsis

Documentation

lookupRouteMeta :: FromJSON a => a -> NonEmpty Text -> LMLRoute -> ModelT f -> a Source #

Look up a specific key in the meta for a given route.

getEffectiveRouteMeta :: LMLRoute -> ModelT f -> Value Source #

Get the (final) metadata of a note at the given route, by merging it with the defaults specified in parent routes all the way upto index.yaml.