package
0.4.0
Repository: https://github.com/albrow/scribble.git
Documentation: pkg.go.dev

# Functions

CompileAll compiles all files in config.SourceDir by delegating each path to it's corresponding Compiler.
FileChanged delegates file changes to the appropriate compiler.
FindPaths iterates recursively through config.SourceDir and returns all the matched paths using mf as a MatchFunc.
Posts returns up to limit posts, sorted by date.
RemoveAllOld removes all the files from config.DestDir.

# Variables

CompilerPaths is a map of Compiler to the matched paths for that Compiler.
Compilers is a slice of all known Compilers.
HtmlTemplatesCompiler is an instatiation of HtmlTemplatesCompilerType.
JadeCompiler is an instatiation of JadeCompilerType.
No description provided by the author
PostCompiler is an instatiation of PostCompilerType.
SassCompiler is an instatiation of SassCompilerType.
UnmatchedPaths is a slice of paths which do not match any compiler.

# Structs

HtmlTemplatesCompilerType represents a type capable of compiling go html template files.
JadeCompilerType represents a type capable of compiling jade files.
Post
Post is an in-memory representation of the metadata for a given post.
PostsCompilerType represents a type capable of compiling post files.
SassCompilerType represents a type capable of compiling sass files.

# Interfaces

Compiler is capable of compiling a certain type of file.
Initer is an interface satisfied by any Compiler which needs to do something before Compile or CompileAll are called.
No description provided by the author

# Type aliases

MatchFunc represents a function which should return true iff path matches some pattern.
The PostsByDate type is used only for sorting.