Hi. That's cool indeed!
What about using (potentially different) HTL scripts and create a Sling model that reads the raw markdown? - Andrei On Fri, Jul 27, 2018, 08:07 Bertrand Delacretaz <[email protected]> wrote: > Hi Robert, > > Cool stuff! > > On Fri, Jul 27, 2018 at 1:18 AM Robert Munteanu <[email protected]> > wrote: > ... > > - render everything else as HTML into jcr:description ... > > I think rendering is a good idea but how about using a more specific > property name? > > Maybe use sling:markdownBody and sling:renderedHtmlBody with the > latter being lazily rendered? Or maybe more concise names, but > specific names would help avoid surprises IMO. > > > ...To generate static sites, usually markdown files are mixed with > images, > > css, js files. Does it make sense to 'pass-through' these files and > > expose them as plain files?... > > I think so, and maybe Carsten's decorator approach helps achieve that. > > -Bertrand >
