All Classes and Interfaces
Class
Description
An abstract jstachio that just needs a
JStachioExtensions
container.Entry point.
Entry point.
A singleton like decorator for appendables that has additional methods for dealing with
native types.
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.
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).
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 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.
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 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 jstachios.
Advises or filters a previously applied template.
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).
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.
Model using a configurer to add state.
Generated Renderer.
Generated Renderer.
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.
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
ServiceLoader
interface for finding Template
s.Locates generated templates by their model via reflection.
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.