diff options
author | bott <mhpoin@gmail.com> | 2018-11-07 13:53:30 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-11-07 17:58:13 +0100 |
commit | 8224f06f3e900443ee42d75cba30d4b9f5f6fd95 (patch) | |
tree | af553e6d8c6c434ea96cf33e75369693593a9e8e /askama_shared/src | |
parent | 2e028ed903169c27748e3c717ea5b1311950a615 (diff) | |
download | askama-8224f06f3e900443ee42d75cba30d4b9f5f6fd95.tar.gz askama-8224f06f3e900443ee42d75cba30d4b9f5f6fd95.tar.bz2 askama-8224f06f3e900443ee42d75cba30d4b9f5f6fd95.zip |
Create askama_escape crate
Diffstat (limited to '')
-rw-r--r-- | askama_escape/src/lib.rs (renamed from askama_shared/src/escaping.rs) | 0 | ||||
-rw-r--r-- | askama_shared/src/filters/mod.rs | 2 | ||||
-rw-r--r-- | askama_shared/src/lib.rs | 4 |
3 files changed, 3 insertions, 3 deletions
diff --git a/askama_shared/src/escaping.rs b/askama_escape/src/lib.rs index b967f1f..b967f1f 100644 --- a/askama_shared/src/escaping.rs +++ b/askama_escape/src/lib.rs diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs index d5c4bd0..35166ff 100644 --- a/askama_shared/src/filters/mod.rs +++ b/askama_shared/src/filters/mod.rs @@ -10,13 +10,13 @@ mod json; #[cfg(feature = "serde-json")] pub use self::json::json; +use askama_escape::MarkupDisplay; use error::Error::Fmt; use num_traits::cast::NumCast; use num_traits::Signed; use std::fmt; use super::Result; -use escaping::MarkupDisplay; // This is used by the code generator to decide whether a named filter is part of // Askama or should refer to a local `filters` module. It should contain all the diff --git a/askama_shared/src/lib.rs b/askama_shared/src/lib.rs index 56b7868..9e2ba6c 100644 --- a/askama_shared/src/lib.rs +++ b/askama_shared/src/lib.rs @@ -1,5 +1,6 @@ #![cfg_attr(feature = "cargo-clippy", allow(unused_parens))] +extern crate askama_escape; extern crate num_traits; extern crate serde; #[macro_use] @@ -13,10 +14,9 @@ use std::fs; use std::path::{Path, PathBuf}; mod error; -mod escaping; +pub use askama_escape::MarkupDisplay; pub use error::{Error, Result}; -pub use escaping::MarkupDisplay; use std::collections::BTreeMap; |