View Single Post
Old 02-21-2018, 07:50 AM   #14
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,741
Karma: 24031403
Join Date: Dec 2010
Device: Kindle PW2
I've recycled code from the ODT import plugin to create a simple epub template plugin and attached a beta version.

What the plugin does is add all files in its resources subfolder to the current epub. (It won't overwrite existing files with the same name, though.)
Simply install the plugin, display its resources folder in the file manager and copy all files that you want to add to the resources folder. (You can't use subfolders.)

To display the resources folder:
  1. Press Windows+R (Run)
  2. Copy and paste %USERPROFILE%\AppData\Local\sigil-ebook\sigil\plugins\EpubTemplate\resources and press Enter. (I've already added a dummy cover page for demonstration purposes.)

To run the plugin select Plugins > Edit > EpubTemplate.
Attached Files
File Type: zip EpubTemplate_v0.1.0.zip (9.9 KB, 437 views)
Doitsu is offline   Reply With Quote