mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-24 15:52:38 +02:00
move epubtemplate outside epub
This commit is contained in:
parent
7a761178e8
commit
8beb5c114b
@ -15,11 +15,11 @@ import (
|
||||
"text/template"
|
||||
"time"
|
||||
|
||||
epubtemplates "github.com/celogeek/go-comic-converter/v2/pkg/epub/templates"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubimage"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubimageprocessor"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epuboptions"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubprogress"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubtemplates"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubtree"
|
||||
"github.com/celogeek/go-comic-converter/v2/pkg/epubzip"
|
||||
"github.com/gofrs/uuid"
|
||||
|
@ -1,23 +0,0 @@
|
||||
/*
|
||||
Templates use to create xml files of the EPUB.
|
||||
*/
|
||||
package epubtemplates
|
||||
|
||||
import _ "embed"
|
||||
|
||||
var (
|
||||
//go:embed "epub_templates_container.xml.tmpl"
|
||||
Container string
|
||||
|
||||
//go:embed "epub_templates_applebooks.xml.tmpl"
|
||||
AppleBooks string
|
||||
|
||||
//go:embed "epub_templates_style.css.tmpl"
|
||||
Style string
|
||||
|
||||
//go:embed "epub_templates_text.xhtml.tmpl"
|
||||
Text string
|
||||
|
||||
//go:embed "epub_templates_blank.xhtml.tmpl"
|
||||
Blank string
|
||||
)
|
23
pkg/epubtemplates/epubtemplates.go
Normal file
23
pkg/epubtemplates/epubtemplates.go
Normal file
@ -0,0 +1,23 @@
|
||||
/*
|
||||
Templates use to create xml files of the EPUB.
|
||||
*/
|
||||
package epubtemplates
|
||||
|
||||
import _ "embed"
|
||||
|
||||
var (
|
||||
//go:embed "epubtemplates_container.xml.tmpl"
|
||||
Container string
|
||||
|
||||
//go:embed "epubtemplates_applebooks.xml.tmpl"
|
||||
AppleBooks string
|
||||
|
||||
//go:embed "epubtemplates_style.css.tmpl"
|
||||
Style string
|
||||
|
||||
//go:embed "epubtemplates_text.xhtml.tmpl"
|
||||
Text string
|
||||
|
||||
//go:embed "epubtemplates_blank.xhtml.tmpl"
|
||||
Blank string
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user