Standardize the construction of intermediate BlogPostPage.
This commit is contained in:
@@ -7,8 +7,14 @@ pub(crate) struct IEntity {
|
||||
pub(crate) html: String,
|
||||
}
|
||||
|
||||
intermediate!(IEntity, Entity, original, _registry, {
|
||||
Ok(IEntity {
|
||||
html: original.html.to_owned(),
|
||||
})
|
||||
});
|
||||
intermediate!(
|
||||
IEntity,
|
||||
&'orig organic::types::Entity<'parse>,
|
||||
original,
|
||||
_registry,
|
||||
{
|
||||
Ok(IEntity {
|
||||
html: original.html.to_owned(),
|
||||
})
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user