pub static IBOOKS: &'static [u8] = include_bytes!("../templates/ibooks.xml");
pub static CONTAINER: &'static [u8] = include_bytes!("../templates/container.xml");
lazy_static! {
pub static ref TOC_NCX: ::mustache::Template =
::mustache::compile_str(include_str!("../templates/toc.ncx"))
.expect("error compiling 'toc.ncx' template'");
}
pub mod v2 {
lazy_static! {
pub static ref CONTENT_OPF: ::mustache::Template =
::mustache::compile_str(include_str!("../templates/v2/content.opf"))
.expect("error compiling 'content.opf' (for EPUB 2.0) template");
pub static ref NAV_XHTML: ::mustache::Template =
::mustache::compile_str(include_str!("../templates/v2/nav.xhtml"))
.expect("error compiling 'nav.xhtml' (for EPUB 2.0) template");
}
}
pub mod v3 {
lazy_static! {
pub static ref CONTENT_OPF: ::mustache::Template =
::mustache::compile_str(include_str!("../templates/v3/content.opf"))
.expect("error compiling 'content.opf' (for EPUB 3.0) template");
pub static ref NAV_XHTML: ::mustache::Template =
::mustache::compile_str(include_str!("../templates/v3/nav.xhtml"))
.expect("error compiling 'nav.xhtml' (for EPUB 3.0) template");
}
}