Skip to content

Commit

Permalink
Merge pull request #656 from geoffreygarrett/master
Browse files Browse the repository at this point in the history
feat: add PathSeg to public API
  • Loading branch information
sunng87 authored Jul 9, 2024
2 parents dcb70c1 + c3a4e5f commit 95a53a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/json/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::grammar::{HandlebarsParser, Rule};
use crate::RenderErrorReason;

#[derive(PartialEq, Eq, Clone, Debug)]
#[non_exhaustive]
pub enum PathSeg {
Named(String),
Ruled(Rule),
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ pub use self::context::Context;
pub use self::decorators::DecoratorDef;
pub use self::error::{RenderError, RenderErrorReason, TemplateError, TemplateErrorReason};
pub use self::helpers::{HelperDef, HelperResult};
pub use self::json::path::Path;
pub use self::json::path::{Path, PathSeg};
pub use self::json::value::{to_json, JsonRender, JsonTruthy, PathAndJson, ScopedJson};
pub use self::local_vars::LocalVars;
pub use self::output::{Output, StringOutput};
Expand Down

0 comments on commit 95a53a8

Please sign in to comment.