Moved playpen.rs `renderer` helper to `preprocess/links.rs` module

This commit is contained in:
Michal Budzynski 2017-07-03 23:18:27 +02:00 committed by Michał Budzyński
parent c482650e56
commit f3f6b40ea9
5 changed files with 4 additions and 2 deletions

View File

@ -86,6 +86,7 @@ extern crate log;
pub mod book; pub mod book;
pub mod config; pub mod config;
mod parse; mod parse;
mod preprocess;
pub mod renderer; pub mod renderer;
pub mod theme; pub mod theme;
pub mod utils; pub mod utils;

1
src/preprocess/mod.rs Normal file
View File

@ -0,0 +1 @@
pub mod links;

View File

@ -1,4 +1,5 @@
use renderer::html_handlebars::helpers; use renderer::html_handlebars::helpers;
use preprocess;
use renderer::Renderer; use renderer::Renderer;
use book::MDBook; use book::MDBook;
use book::bookitem::{BookItem, Chapter}; use book::bookitem::{BookItem, Chapter};
@ -46,7 +47,7 @@ impl HtmlHandlebars {
// Parse for playpen links // Parse for playpen links
if let Some(p) = path.parent() { if let Some(p) = path.parent() {
content = helpers::playpen::render_playpen(&content, p); content = preprocess::links::render_playpen(&content, p);
} }
content = utils::render_markdown(&content, ctx.book.get_curly_quotes()); content = utils::render_markdown(&content, ctx.book.get_curly_quotes());

View File

@ -1,3 +1,2 @@
pub mod navigation; pub mod navigation;
pub mod toc; pub mod toc;
pub mod playpen;