GithubHelp home page GithubHelp logo

Comments (6)

fboender avatar fboender commented on July 24, 2024

As a workaround, you can start a local HTTP server to serve the file with python -m SimpleHTTPServer. Browse to http://127.0.0.1:8000 to view it.

For a more structural solution, I can create a new template 'html_fancy_local' that uses local files.

from ansible-cmdb.

rndmh3ro avatar rndmh3ro commented on July 24, 2024

'html_fancy_local' sounds great!
I could create a PR if you want.
Create a new directory /usr/local/lib/${PROG}/static/js, put the JS-files there and reference them?

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

I was planning on using the new -p option to ansible-cmdb to pass a param to the html_fancy template. Something like -p local=1. Otherwise we have to maintain two separate but otherwise identical templates.

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

/usr/local/lib/${PROG}/static/js sounds good!

from ansible-cmdb.

fboender avatar fboender commented on July 24, 2024

I've commited a change that lets you generate html_fancy template output with local resources instead of the internet. How to use it is described in the README. Can you check it out, see what you think?

from ansible-cmdb.

rndmh3ro avatar rndmh3ro commented on July 24, 2024

Looks good to me, thanks!

from ansible-cmdb.

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.