Closed progfolio closed 4 years ago
That looks really neat! I'll be sure to plop that in my config :grinning: Thanks for letting me know and writing up that example!
One caveat, this doesn't seem to work with 'parents' as it is, I had to perform this tweak to props
in the when-let*
(props (nthcdr (if (= (length template) 4) 2 5) template))
Yes, I overlooked that! Sorry!
I like the idea!
I came across your usage here and pushed a change to doct that will allow more introspection during the
doct-after-conversion-functions
hook. The upshot is that you could specify a custom:icon
keyword and use that to take care of prepending your templates' names during the hook.The necessary functions are:
And you'd set
doct-after-conversion-functions
to:Then on your templates you can specify the icon like so:
IMHO, this is easier to read.
Just thought I'd point out the possibility. Thanks for using doct! (note this will only work on latest version of doct)