Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing the meta.xml file, with patch. #5

Open
leavengood opened this issue Feb 2, 2011 · 0 comments
Open

Processing the meta.xml file, with patch. #5

leavengood opened this issue Feb 2, 2011 · 0 comments

Comments

@leavengood
Copy link

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)
@ghost ghost self-assigned this May 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant