You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: