pub struct Registry<'reg> {
pub env: Handlebars<'reg>,
pub content: HashMap<String, Vec<u8>>,
}Expand description
Registry with a cache for rendered item contents.
Fields§
§env: Handlebars<'reg>The templates before rendering.
content: HashMap<String, Vec<u8>>The rendered contents of items.
Trait Implementations§
Source§impl Register for Registry<'_>
impl Register for Registry<'_>
Source§fn register_helpers(self) -> Result<Self>
fn register_helpers(self) -> Result<Self>
Registers DT’s built-in helpers.
Source§fn load(self, config: &DTConfig) -> Result<Self>
fn load(self, config: &DTConfig) -> Result<Self>
Load templates and render them into cached storage, items that are not
templated (see
renderable) will not be registered into templates
but directly stored into the rendered cache.Auto Trait Implementations§
impl<'reg> Freeze for Registry<'reg>
impl<'reg> !RefUnwindSafe for Registry<'reg>
impl<'reg> Send for Registry<'reg>
impl<'reg> Sync for Registry<'reg>
impl<'reg> Unpin for Registry<'reg>
impl<'reg> !UnwindSafe for Registry<'reg>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more