-
how does
:order
work and can non-integers be used? based onmendoza/sitemap.janet
, it seems like non-integers should be usable. -
the watching seems a bit flaky -- i.e. making changes to
.mdz
files doesn't always appear to lead to regenerated content. at least withfswatch
.inotifywait
seemed to give better results. not sure if watchful would be better in some cases...eye works on windows and it seems to claim portability so that might be one path toward cross-platformness. though perhaps these remarks are more geared toward what janet-lang.org's repository might provide. -
what do various files do?
mdz
- cli with various subcommand (e.g.build
,clean
,server
,watch
, etc.)mendoza/init.janet
- connects other pieces and provides theinit
,clean
,serve
,build
, andwatch
functions -- it's whatmdz
importsmendoza/markup.janet
- providesmarkup
, a function that parses mendoza markup, evals, and returns doc treemendoza/render.janet
- providesrender
, a function that renders to html (janet buffer)mendoza/syntax.janet
- providesspan
, a function that does syntax highlightingmendoza/sitemap.janet
- providescreate
, a function to generate a sitemap (janet table)mendoza/static.janet
- static asset management (add-file
andcopy-to-site
functions)mendoza/template.janet
- providestemplate
, a function that compiles a template string into a functionmendoza/template-env.janet
- provides multiple functions for use in templates (dom-find
,find-tag
,find-section
,static-file
,relative-url
)mendoza/watch-cache.janet
- cache, allows unloading of imported modules ('add
andclean
functions)
-
which pieces interact with the watch-cache?
mendoza/init.janet
-clean
mendoza/markup.janet
-add
viaadd-loader
mendoza/static.janet
- imports but doesn't appear to usemendoza/syntax.janet
-add
viaadd-loader
mendoza/template.janet
-add
viatemplate-loader
Last active
March 1, 2024 03:49
-
-
Save sogaiu/c73a6ad5e7af02ef53238de4709eaf74 to your computer and use it in GitHub Desktop.
mendoza questions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment