dollgen readme
this content of this page is an automatic transclusion from the README on codeberg
dollgen is a relatively simple Static Site Generator, intended to be unbiased towards what you choose to write your site in (by default, it doesn't have any language-specific features)
rules
the core of dollgen is simple, define rules with the following:
- included paths*
- excluded paths*
- output path* (recieves captures from the include glob that matched)
- transformer that reads the input file and generates a plan to be executedmay be created oneself or found in the integrations section
although it's *recommended* to use
src/ for input files and dist/ for output files, dollgen does not care what directories you use, and will automatically create directories up to whatever output path that a rule specifies[glob ^1 ^2]:
globs follow the syntax of capturing-glob
all paths are relative to the current working directory
[format ^1]:
format strings follow a similar syntax to rust's format strings, but simpler
given a list of captures,
{n} is replaced with the n-th capturegiven rule with an include
src/(**)/(*).draft.*), matching path src/blog/itsfirstblog.draft.doll, format string dist/{0}/{1}.html would produce dist/blog/itsfirstblog.htmlintegrations
read more about integrations in their individual modules
currently present
- templating languages
- liquid (feature:
liquid, support for the liquid templating language) - minijinja (feature:
minijinja, support for the jinja templating language via minijinja)
- liquid (feature:
- source languages to be used in templates
- markdoll (feature:
lang-markdoll, support for the markdoll language)
- markdoll (feature:
- misc
- scss (feature:
scss, support for the scss/sass stylesheet languages) - wasm (feature:
wasm, support for compiling rust libs to webassembly modules, via wasm_bindgen)
- scss (feature:
planned
- markdown
- maybe MDX?
- maybe reStructuredText? (if it wants to subject itself to that?)
- at this point just make an issue for what you want
| created: | |
|---|---|
| updated: | |
| built: |