Giter VIP home page Giter VIP logo

Comments (5)

chrismaddalena avatar chrismaddalena commented on May 18, 2024 2

Ah ha! I had some folks mentions python-docx-template to me again recently and I forgot why it was already on my mind.

PR #66 has implemented template customization. The new template.docx in the repo is a decent example of a basic template. It's not documented yet, but Ghostwriter will continue to build on this foundation. The basics are covered in the documentation for https://github.com/elapouya/python-docx-template. The Ghostwriter project will have some of its own options that will be documented as we move forwarded.

For now, customization uses the python-docx-template Jinja2 tags (as documented within that project) and a {{p findings_subdoc }} variable that drops in the findings as a sub-document.

from ghostwriter.

chrismaddalena avatar chrismaddalena commented on May 18, 2024

We do have plans for something like this. It's a lower priority than what we're working on now (see your idea from issue #27). The key reason being that additional logging will undoubtedly change how we look at report generation. I expect we will hash out details for both enhancements in January.

from ghostwriter.

WoBuGs avatar WoBuGs commented on May 18, 2024

An alternative that might be also interesting, at least for docx reports, would be to use something like https://github.com/elapouya/python-docx-template, which is based on the templating language Jinja2.

from ghostwriter.

chrismaddalena avatar chrismaddalena commented on May 18, 2024

Ah, interesting... thanks for sharing that. We use python-docx, so perhaps this might be useful.

from ghostwriter.

fastlorenzo avatar fastlorenzo commented on May 18, 2024

Awesome, thanks a lot for the good work! I'll try it out later

from ghostwriter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.