Sorry, I should have specified that I also want to dynamically create this file as depending on what element I am exporting will adjust the generated HTML file that composes the SCORM package.
So far I have pursued the avenue of creating a new view called ScormView and create associated templates in the appropriate templates folder /templates/scorm. For example, the SCORM manifest file is located at:
/project_root/lib/mannequin_web/templates/scorm/imsmanifest.xml.eex
I then render it to a string like this:
Phoenix.View.render_to_string(MannequinWeb.ScormView, "imsmanifest.xml", %{schema: "my_schema_name"})
And then use the string as part of the data sent to the zip command. I haven’t executed the :zip.create call yet using this string data, but based on my understanding of elixir, I should be able to use the generated template string as binary data… I’ll try that tommorow.
Do you see any particular issues using the above approach?
Cheers..


















