Skip to main content

build html file from jsfiddle files

Project description

Installation

$ [sudo] pip install jsfiddle-build

How it works

jsfiddle github repo:

.
├── build.html          generated
├── demo.html           required
├── demo.css            optional
├── demo.js             optional
├── demo.details        optional

jsfiddle github gist:

.
├── build.html          generated
├── fiddle.html         required
├── fiddle.css          optional
├── fiddle.js           optional
├── fiddle.manifest     optional

build.html:

<html>
<head>
<title>{title}</title>
{resources}
<style type="text/css">
    {css}
</style>
<script type="text/javascript">
window.onload=function(){
    {js}
}
</script>
</head>
<body>
    {html}
</body>
</html>

Examples

$ find . -name "*.html" ! -name "build.*" | xargs python -m jsfiddle_build

paths with spaces:

OS speed command
any slow find . -name "*.html" ! -name "build.*" -exec python -m jsfiddle_build {} \;
Linux fast find . -name "*.html" ! -name "build.*" -print0 | xargs -d '\n' python -m jsfiddle_build
macOS fast find . -name "*.html" ! -name "build.*" -print0 | xargs -0 python -m jsfiddle_build

Related

Links

readme42.com

Project details


Download files

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

Source Distribution

jsfiddle-build-2020.12.3.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file jsfiddle-build-2020.12.3.tar.gz.

File metadata

  • Download URL: jsfiddle-build-2020.12.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for jsfiddle-build-2020.12.3.tar.gz
Algorithm Hash digest
SHA256 5ad681d99a1d08ba79976d806e3604cfc1cb223fd72b072c9aaf5f40460762a4
MD5 a9dacc305319ff0669a61b8ea7de9f61
BLAKE2b-256 ffb55ad82b4573a26a18c73d03f46de393fad2945e29f282131f2e4d49d872af

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page