package mustache
- Alphabetic
- Public
- All
Type Members
- class ClassLoaderLoader extends MustacheLoader
-
class
FileSystemLoader
extends MustacheLoader
A simple loader that loads templates from a base directory on the file system.
A simple loader that loads templates from a base directory on the file system. Template can be in sub directories in which case the relative path from the base directory must be given.
- class MustacheException extends Exception
-
abstract
class
MustacheLoader
extends AnyRef
A mustache loader defines the strategy to load mustache files
- class MustacheParser extends AnyRef
-
class
MustacheProcessor
extends AnyRef
A mustache processor is able to process templates from several sources from classpath or filesystem, or even programmatically built.
A mustache processor is able to process templates from several sources from classpath or filesystem, or even programmatically built.
This processor does not presume any file extension for templates. You can load files with any extension and it assumes it is a mustache template file. So the simple case where you say "load my template file named
my-template.txt
in directorydir
" simply works as you expect it to work. No magic there to add implicit file extension, no complex classpath lookup. You can actually implement the loading strategy of your choice by implementing gnieh.mustache.MustacheLoader. By default we provide simple strategies that lookup for files in a directrory or in the classpath as well as a composition strategy.If the processor is said to be resident, it caches the templates for more efficient rendering later on. Cache is never automatically invalidated, this is a simple processor. You can either invalidate a specific template manually, or clean the entire cache at once.
- final case class Partial (name: String) extends Statement with Product with Serializable
- final case class Section (name: String, content: List[Statement], inverted: Boolean) extends Statement with Product with Serializable
- class SequenceLoader extends MustacheLoader
- sealed trait Statement extends AnyRef
- final case class Text (content: String) extends Statement with Product with Serializable
- final case class Variable (name: String, escaped: Boolean) extends Statement with Product with Serializable
Value Members
- object MustacheLoader
Gnieh Tekstlib
Gnieh Tekstlib is a library grouping standard classes and packages allowing people to work with texts and documents.
Package Structure
gnieh.diff
diff manipulation,gnieh.hyphen
hyphenation for text in any language,gnieh.string
strings manipulation for text processing,gnieh.mustache
lightweight mustache template engine,gnieh.pp
pretty printing related classes,gnieh.regex
regular expressions manipulation.