Skip to content

Commit

Permalink
Merge pull request #298 from epage/interp
Browse files Browse the repository at this point in the history
Move to stabilize interpreter
  • Loading branch information
epage authored Dec 11, 2018
2 parents 4e50687 + 406134c commit a4ccfb8
Show file tree
Hide file tree
Showing 20 changed files with 376 additions and 374 deletions.
3 changes: 3 additions & 0 deletions liquid-compiler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mod include;
mod options;
mod parser;
mod tag;
mod text;

pub mod error {
pub use liquid_error::*;
Expand All @@ -25,3 +26,5 @@ pub use include::*;
pub use options::*;
pub use parser::*;
pub use tag::*;

use text::Text;
2 changes: 1 addition & 1 deletion liquid-compiler/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ use std;

use liquid_interpreter::Expression;
use liquid_interpreter::Renderable;
use liquid_interpreter::Text;
use liquid_interpreter::Variable;
use liquid_interpreter::{FilterCall, FilterChain};
use liquid_value::Scalar;
Expand All @@ -17,6 +16,7 @@ use super::error::{Error, Result};
use super::LiquidOptions;
use super::ParseBlock;
use super::ParseTag;
use super::Text;

use pest::Parser;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
use std::io::Write;

use super::Context;
use super::Renderable;
use error::{Result, ResultLiquidChainExt};
use liquid_interpreter::Context;
use liquid_interpreter::Renderable;

/// A raw template expression.
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Text {
pub(crate) struct Text {
text: String,
}

impl Text {
/// Create a raw template expression.
pub fn new<S: Into<String>>(text: S) -> Text {
pub(crate) fn new<S: Into<String>>(text: S) -> Text {
Text { text: text.into() }
}
}
Expand Down
1 change: 1 addition & 0 deletions liquid-interpreter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ appveyor = { repository = "johannhof/liquid-rust" }

[dependencies]
itertools = "0.7.0"
anymap = "0.12"
# Exposed in API
liquid-error = { version = "0.16", path = "../liquid-error" }
liquid-value = { version = "0.17", path = "../liquid-value" }
Expand Down
Loading

0 comments on commit a4ccfb8

Please sign in to comment.