Skip to content

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

@leavengood

Description

@leavengood

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions