Move MathNumber into the library.
While this will be used for the OwnedLiterals since they must always exhibit the original DustJS behavior, I am going to keep exposing separate math functions for ContextElement instead of simply requiring them to implement Into<MathNumber> since people might want to implement math in unusual ways with unusual types.
This commit is contained in:
@@ -5,6 +5,7 @@ mod context_element;
|
||||
mod errors;
|
||||
mod inline_partial_tree;
|
||||
mod iteration_context;
|
||||
mod math;
|
||||
mod parameters_context;
|
||||
mod renderer;
|
||||
mod select_context;
|
||||
@@ -21,7 +22,7 @@ pub use context_element::Walkable;
|
||||
pub use errors::CompileError;
|
||||
pub use errors::RenderError;
|
||||
pub use errors::WalkError;
|
||||
pub use parameters_context::math_ints;
|
||||
pub use math::MathNumber;
|
||||
pub use renderer::compile_template;
|
||||
pub use renderer::DustRenderer;
|
||||
pub use select_context::SelectContext;
|
||||
|
||||
Reference in New Issue
Block a user