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
$ find . -name "demo.html" | xargs python -m jsfiddle_build
paths with spaces:
OS | speed | command |
---|---|---|
Linux | fast | find . -name "demo.html" -print0 | xargs -d '\n' python -m jsfiddle_build |
macOS | fast | find . -name "demo.html" -print0 | xargs -0 python -m jsfiddle_build |
any | slow | find . -name "demo.html" -exec 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.4.11-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c140ac0ddeb9aa6e367809214aebf121b3126f5be3050916e23fc1b0ba87ef52 |
|
MD5 | 4e91809d9d00429a75a9b5da4142be42 |
|
BLAKE2b-256 | 2645ee0183767c5c6bab6e46e16a64ee586c01ea499da71bd194dfae2e8c515c |