All Classes and Interfaces
Class
Description
An abstract jstachio that just needs a
JStachioExtensions
container.Entry point.
Entry point and class that defines shared jstachio config to be imported in other
places with
JStacheConfig.using()
.A singleton like decorator for appendables that has additional methods for dealing with
native types used to output variables that have been formatted.
A custom OutputStream that is designed for generating bytes from pre-encoded output as
well as reused carefully either by threadlocals or some other pooling
mechanism.
This interface serves two puproses:
A way to represent the current context stack (see
ContextNode.parent()
)
Allow you to simulate JSON/Javscript object node like trees without being coupled
to a particularly JSON lib.Default formatters.
An Escaper is an
Appender
used to escape content such as HTML.Formats and then sends the results to the downstream appender.
Example hello world controller using different ways to use JStachio for web
development.
Example hello world controller using different ways to use JStachio for web
development.
Model using a resource template that is in src/main/resources/views.
Model using a resource template that is in src/main/resources/views.
Generated Renderer.
Generated Renderer.
Provides a mustache spec based HTML escaper which is the default in normal mustache.
Use JMustache instead of JStachio for rendering.
Generates a JStachio Renderer from a template and a model (the annotated class).
Place on package to generate a TemplateProvider/JStachioTemplateFinder that will have a
catalog of all public generated JStache templates in the compile time boundary that are
of type
JStacheType.JSTACHIO
.Configuration flags for generating template catalogs such
META-INF/services
files.Set module or package level config for
JStache
annotated models that do not
have the configuration explicitly set (e.g.Register escapers or filters.
A sentinel null object content type marker to auto resolve the content type based
on config found elsewhere.
Compiler feature flags that are subject to change.
Compiler flags.
Statically registers a formatter.
A formatter type marker to resolve the formatter based on config elsewhere.
Statically sets allowed formatting types.
This annotation is useful to force models and templates implement interfaces or have
annotations particularly where you want all models to implement a lambda mixin
interface.
Tag a method to be used as a mustache lambda section for custom logic.
Tag a method return type of String or parameter of String to be used as a raw
unprocessed string.
Configures how to name the generated template java code (the classes generated from
JStache annotations).
Allows you to define and remap/override partials on a model (
JStache
)Allows you to define and remap/override partials on a model.
Configure how the paths of templates map to actual source resources.
Tells the annotation processor what kind of code to generate namely whether to generate
full fledged jstachio templates (default
JStacheType.JSTACHIO
) or zero
dependency templates (JStacheType.STACHE
).Render models by using reflection or static catalog to lookup generated templates as
well as apply filtering and fallback mechanisms.
Runtime Config Service.
Encodes a JStachio model into a bytes to be used as output from a webflux reactive
controller.
An SPI extension point via the
ServiceLoader
or other mechanisms like DI.An extension that is a factory that provides other extensions.
A container that will hold all resolved
JStachioExtension
s and consolidate them
to a single instances of various services.A marker interface used for JStachio implementations that provide access to
extensions.
Creates JStachios mainly with the
ServiceLoader
or a JStachioFactory.Builder
.Builder for creating a custom JStachio.
Advises, intercepts or filters a template before being rendered.
A fully composed chain that renders a model by applying filtering.
Typesafe way to use JStachio in Spring Web.
One way to use JStachio with Spring Webflux is to use this special View that will
delegate to JStachio to render.
Another way to use JStachio with Spring MVC is to have models implement Springs
View
interface.User can provide instances in the application context and they will be applied to each
JStachioModelView
instance before rendering.User can provide instances in the application context and they will be applied to each
JStachioModelView
instance before rendering.Finds templates based on the model type (class).
An easier to implement template finder based on a sequence of templates.
Message wiring.
Spring configuration to add a
JStachioModelViewConfigurer
for MessagePage.Example controller that uses a View which has global state injected into it via a
handler interceptor.
Example controller that uses a View which has global state injected into it via a
handler interceptor.
Model using a configurer to add state.
Model using a configurer to add state.
Generated Renderer.
Generated Renderer.
A low level abstraction and implementation detail analogous to
Appendable
and
DataOutput
.A specialized Output designed for pre-encoded templates that have already encoded
byte arrays to be used directly.
String Builder based output.
Provides NOOP escaper for working with plain text.
Renders models of type
T
by writing to an Appendable.Formatter that follows the spec rules that if a variable is
null
it will
be an empty string (ie NOOP).A JStachio that does not use the service loader.
JStachio services based on Spring notably the config and
template finding.
Configures JStachio Spring style.
Configures JStachio Spring style.
A JStachio Template is a renderer that has template meta data.
EXPERIMENTAL support of pre-encoded templates that have the static
parts of the template already encoded into bytes.
A Container for optional template collaborators for ease of wiring generated
Template
s.Template meta data like its location, formatters, escapers and or its contents.
Symbols representing where the template was retrieved from.
A template and model combined with convenience methods.
A
ServiceLoader
interface for finding Template
s.Generated template providers implement this interface to support easier
ServiceLoader registration for modular libraries/applications.
Locates generated templates by their model via reflection.
Strategy to load templates dynamically.
A
BeanPostProcessor
that it registers a HandlerResultHandler
that
automatically applies all JStachioModelViewConfigurer
instances to views before
rendering.A
HandlerInterceptor
that automatically applies all
JStachioModelViewConfigurer
instances to views before rendering.Configures MVC using
JStachioHttpMessageConverter
to allow returning models
which will be rendered using JStachio runtime.Configures MVC using
JStachioHttpMessageConverter
to allow returning models
which will be rendered using JStachio runtime.