-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
This was a very useful library for me, thanks for making it.
I wanted to have the ability to use some templating in the meta.xml (where the document title is stored) and I was able to add that very easily. Instead of forking this project it was easier to just to attach a patch here:
diff --git a/lib/serenity/template.rb b/lib/serenity/template.rb
index 33548d1..45df813 100644
--- a/lib/serenity/template.rb
+++ b/lib/serenity/template.rb
@@ -13,7 +13,7 @@ module Serenity
def process context
tmpfiles = []
Zip::ZipFile.open(@template) do |zipfile|
- %w(content.xml styles.xml).each do |xml_file|
+ %w(content.xml styles.xml meta.xml).each do |xml_file|
content = zipfile.read(xml_file)
odteruby = OdtEruby.new(XmlReader.new(content))
out = odteruby.evaluate(context)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels