[−][src]Trait liquid::partials::PartialCompiler
Compile a PartialSource
into a PartialStore
of Renderable
s.
This trait is intended to allow a variety of implementation/policies to fit your needs, including:
- Compile partials eagerly or lazily.
- Report compile errors eagerly or lazily.
- Whether to cache the results or not.
Required methods
fn compile(
self,
language: Arc<Language>
) -> Result<Box<dyn PartialStore + Send + Sync>>
self,
language: Arc<Language>
) -> Result<Box<dyn PartialStore + Send + Sync>>
Convert a PartialSource
into a PartialStore
.
Implementors
impl<S> PartialCompiler for EagerCompiler<S> where
S: PartialSource + Send + Sync + 'static,
[src]
impl<S> PartialCompiler for EagerCompiler<S> where
S: PartialSource + Send + Sync + 'static,
impl<S> PartialCompiler for LazyCompiler<S> where
S: PartialSource + Send + Sync + 'static,
[src]
impl<S> PartialCompiler for LazyCompiler<S> where
S: PartialSource + Send + Sync + 'static,
impl<S> PartialCompiler for OnDemandCompiler<S> where
S: PartialSource + Send + Sync + 'static,
[src]
impl<S> PartialCompiler for OnDemandCompiler<S> where
S: PartialSource + Send + Sync + 'static,