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) |
CLI
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" | sed 's#/[^/]*$##' | 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.
Source Distribution
Built Distribution
Close
Hashes for jsfiddle_build-2019.3.25-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814f9b9e49e34ca599a0eaa1193c1bbd404427b2ec55b0c296f162ad1bbeecac |
|
MD5 | 2efbdbabebb7f974aeab5fabeb0300e0 |
|
BLAKE2b-256 | 48fb69eec930a880832197fa0f14eb4c23146c1e914d584c8d9a4d2cefadf2f5 |