lundi 7 décembre 2015

Partials while generating docx using Caracal gem

I'm trying to generate .docx file via caracal gem (http://ift.tt/1m7G79J). It's wrapped with their rails gem - caracal-rails. I tried using partials in show.docx.caracal file with render partial: 'template' pointing to _template.docx.caracal file. There was no error, but content of partial was no included in generated document. There were only docx.ps from show and no docx.ps from partial.

If anybody using this gem tried partials - is there a way to use partials with this gem? (maybe it's not working because tilt which caracal uses has no compiler for these type of files?)

Aucun commentaire:

Enregistrer un commentaire