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
jsfiddle.py
- jsfiddle helperjsfiddle-build.py
- build html file from jsfiddle filesjsfiddle-generator.py
- jsfiddle files generatorjsfiddle-readme.py
- generate jsfiddleREADME.md
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
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 |
Close
Hashes for jsfiddle_build-2019.4.7-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5856c2f4d3ee1bafc419513ebe16c07b7f2b0e17099d74e51f038b4bdf8e5af8 |
|
MD5 | bf1e2de2d15a085a2092279b18ec57bf |
|
BLAKE2-256 | a4175a7d611b09a27d19721c15cc5cbecd2e2f33f80bcde5bb39093095f9225e |