Skip to content

Commit

Permalink
add TemplateString docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dekkku committed Aug 11, 2024
1 parent 590d915 commit 35bcda5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/mustache/template_string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer};
use super::{Mustache, Segment};
use crate::core::path::PathString;

/// TemplateString acts as wrapper over mustache but supports serialization and
/// deserialization. It provides utilities for parsing, resolving, and comparing
/// template strings.
#[derive(Debug, derive_more::Display, Default)]
pub struct TemplateString(Mustache);

Expand All @@ -12,7 +15,6 @@ impl PartialEq for TemplateString {
}
}


impl TryFrom<&str> for TemplateString {
type Error = anyhow::Error;
fn try_from(value: &str) -> anyhow::Result<Self> {
Expand Down

0 comments on commit 35bcda5

Please sign in to comment.