summary refs log tree commit diff stats
path: root/src/new/chapter.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/new/chapter.rs')
-rw-r--r--src/new/chapter.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/new/chapter.rs b/src/new/chapter.rs
index 887855b..fcc075d 100644
--- a/src/new/chapter.rs
+++ b/src/new/chapter.rs
@@ -7,7 +7,7 @@ use crate::{
     file_tree::{FileTree, GeneratedFile},
 };
 
-use super::MangledName;
+use super::{replacement::untemplatize_chapter, MangledName};
 
 pub struct ChapterName {
     name: MangledName,
@@ -125,10 +125,7 @@ fn new_chapter_file(
     project_root: &Path,
     last_chapter_number: u32,
 ) -> GeneratedFile {
-    let chapter_text = config
-        .templates
-        .chapter
-        .replace("REPLACEMENT_CHAPTER", &name);
+    let chapter_text = untemplatize_chapter(&config.templates.chapter, &name);
 
     GeneratedFile::new(
         project_root