Skip to main content

build html file from jsfiddle files

Project description

Installation

$ [sudo] pip install jsfiddle-build

How it works

required: demo.html. optional: demo.css, demo.js, demo.details

demo.details (optional)

---
 name: Name of the Demo
 description: Some description, please keep it in one line
 resources:
   - http://some.url.com/some/file.js
   - http://other.url.com/other_filename.css

build.html:

<html>
<head>
<title>Name of the Demo</title>
<script type="text/javascript" src="http://some.url.com/some/file.js"></script>
<link rel="stylesheet" type="text/css" href="http://other.url.com/other_filename.css">
<style type="text/css">
    demo.css ...
</style>
<script type="text/javascript">
window.onload=function(){
    demo.js ...
}
</script>
</head>
<body>
    demo.html ...
</body>
</html>

Classes

class __doc__
jsfiddle_build.Build methods: render(), save(path)

Executable modules

usage __doc__
python -m jsfiddle_build path ... build build.html from jsfiddle files (demo.css, demo.details,demo.js,demo.html)

Examples

$ python -m jsfiddle_build path/to/jsfiddle
$ find . -name "demo.html" | xargs python -m jsfiddle_build

Related projects

Links

python-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsfiddle-build, version 2019.4.7
Filename, size File type Python version Upload date Hashes
Filename, size jsfiddle_build-2019.4.7-py2.py3-none-any.whl (4.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size jsfiddle-build-2019.4.7.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page