Packages

p

gnieh

mustache

package mustache

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. class ClassLoaderLoader extends MustacheLoader
  2. 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.

  3. class MustacheException extends Exception
  4. abstract class MustacheLoader extends AnyRef

    A mustache loader defines the strategy to load mustache files

  5. class MustacheParser extends AnyRef
  6. 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 directory dir" 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.

  7. final case class Partial (name: String) extends Statement with Product with Serializable
  8. final case class Section (name: String, content: List[Statement], inverted: Boolean) extends Statement with Product with Serializable
  9. class SequenceLoader extends MustacheLoader
  10. sealed trait Statement extends AnyRef
  11. final case class Text (content: String) extends Statement with Product with Serializable
  12. final case class Variable (name: String, escaped: Boolean) extends Statement with Product with Serializable

Value Members

  1. object MustacheLoader

Ungrouped