View Source GriffinSSGOld (Griffin v0.2.0)
This is the documentation for the Griffin project.
By default, Griffin will scan for content in the priv/content
directory
and output generated files to the _site
directory.
Griffin depends on the following libraries:
- Plug - a specification and conveniences for composable modules in between web applications
Link to this section Summary
Functions
Compiles a template file from disk into quoted code
that can then be used by GriffinSSG.render/3
.
Reads a file from disk and returns the parsed frontmatter metadata and the file contents.
Renders a layout to file, taking in a number of options that affect the rendered output.
Link to this section Functions
Compiles a template file from disk into quoted code
that can then be used by GriffinSSG.render/3
.
Reads a file from disk and returns the parsed frontmatter metadata and the file contents.
Renders a layout to file, taking in a number of options that affect the rendered output.
The following options
are accepted:
frontmatter
- the frontmatter attributescontent
- the content to render in the layoutassigns
- a map with template variables to be used in the layout